[yt-users] Failure in annotate_particles
Bili Dong
qobilidop at gmail.com
Fri Feb 24 11:53:58 PST 2017
Hi Andrew,
This an issue I just solved two days ago in this PR <https://bitbucket.org/yt_analysis/yt/pull-requests/2527>. It’s related to the numpy version. A quick fix is to pass `stride=1` to `annotate_particles` directly. Or you can update yt to the most recent version where that PR is merged.
Hope that helps.
Regards,
Bili
> On Feb 24, 2017, at 11:49 AM, Andrew James Emerick <aje2123 at columbia.edu> wrote:
>
> HI all,
>
> I'm getting a weird failure in the annotate particles callback that I'm having trouble reproducing on another machine.
>
> Here is the error message output I'm getting: http://paste.yt-project.org/show/7048/ <http://paste.yt-project.org/show/7048/> . I'm just doing a simple:
>
> $ sp = yt.SlicePlot(ds, 'z', 'density')
> $ sp.annotate_particles(0.9)
> $ sp.save()
>
> This error occurs only on a machine where I have yt installed from source (version 3.3.4, changeset 6e21d8723012 of the stable branch.. this also occured on changeset 7f76a9ccfcca). I could not reproduce the error on a local machine where I've installed yt using anaconda (yt version 3.3.4). It fails on a ProjectionPlot as well.
>
> Any thoughts on what could be causing this?
>
>
>
> Thanks,
> Andrew
> --
> NSF Graduate Fellow
> Columbia University
> Department of Astronomy
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170224/c9bb7c52/attachment.html>
More information about the yt-users
mailing list