<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Andrew,<div class=""><br class=""></div><div class="">This an issue I just solved two days ago in this <a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2527" class="">PR</a>. 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.</div><div class=""><br class=""></div><div class="">Hope that helps.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Bili</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 24, 2017, at 11:49 AM, Andrew James Emerick <<a href="mailto:aje2123@columbia.edu" class="">aje2123@columbia.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">HI all,<div class=""><br class=""></div><div class="">I'm getting a weird failure in the annotate particles callback that I'm having trouble reproducing on another machine. </div><div class=""><br class=""></div><div class="">Here is the error message output I'm getting: <a href="http://paste.yt-project.org/show/7048/" class="">http://paste.yt-project.org/show/7048/</a>   . I'm just doing a simple:</div><div class=""><br class=""></div><div class="">$ sp = yt.SlicePlot(ds, 'z', 'density')</div><div class="">$ sp.annotate_particles(0.9)</div><div class="">$ sp.save()</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Any thoughts on what could be causing this?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Andrew</div><div class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div style="font-family:arial;font-size:small" class="">NSF Graduate Fellow</div><div style="font-family:arial;font-size:small" class="">Columbia University<br class=""></div><div style="font-family:arial;font-size:small" class="">Department of Astronomy</div></div></div></div></div>
</div></div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></div></body></html>