<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 Nathan,<div class=""><br class=""></div><div class="">I checked that the matplotlib versions are the same.</div><div class=""><div class=""><br class=""></div><div class="">I changed my script to <a href="http://paste.yt-project.org/show/5809/" class="">http://paste.yt-project.org/show/5809/</a>. The results of cProfile on the server are <a href="http://paste.yt-project.org/show/5810/" class="">http://paste.yt-project.org/show/5810/</a>. Judging by eye, it seems to be related to the triangulation functionality.</div><div class=""><br class=""></div><div class="">-Bili</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Aug 10, 2015, at 3:15 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hey Bili,<div class=""><br class=""></div><div class="">Just a shot in the dark, but do you have different matplotlib versions installed on your machine and server at UCSD? The contour callback is using some internal machinery in matplotlib that changed relatively recently.</div><div class=""><br class=""></div><div class="">It might also be worthwhile to run your script under cProfile so we get an idea of which function exactly is taking so long. Even better if you can run *that* function under the line_profiler.</div><div class=""><br class=""></div><div class="">-Nathan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Aug 10, 2015 at 5:10 PM, Bili Dong <span dir="ltr" class=""><<a href="mailto:qobilidop@gmail.com" target="_blank" class="">qobilidop@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi yt-users,<div class=""><br class=""></div><div class="">I’m using yt-3.2 (Changeset = 329b5039b031 stable).</div><div class=""><br class=""></div><div class="">The problem is that the same script that could finish in seconds on my local machine will take much  (order of magnitude) longer time to run on the server I’m using. In some cases, it get stuck for hours that I don’t know if it will ever finish. I’ve tracked down the bottleneck to be the `annotate_contour` method. The server should be faster than my local machine. (I’m not exactly sure about how to compare it. But the server is generally much faster in other situations.)</div><div class=""><br class=""></div><div class="">For example, for this script (<a href="http://paste.yt-project.org/show/5808/" target="_blank" class="">http://paste.yt-project.org/show/5808/</a>), on my local machine the output shows:</div><div class=""><br class=""></div><div class="">```</div><div class=""><div class="">yt : [INFO     ] 2015-08-10 <b class="">14:48:15</b>,401 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800</div><div class="">yt : [INFO     ] 2015-08-10 <b class="">14:48:15</b>,751 Saving plot snapshot_200_Projection_z_density.png</div><div class="">yt : [INFO     ] 2015-08-10 <b class="">14:48:16</b>,716 Saving plot snapshot_200_Projection_z_density.png</div></div><div class="">```</div><div class=""><br class=""></div><div class="">However, on the server the output shows:</div><div class="">```</div><div class=""><div class="">yt : [INFO     ] 2015-08-10 <b class="">14:51:25</b>,551 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800</div><div class="">yt : [INFO     ] 2015-08-10 <b class="">14:51:25</b>,917 Saving plot snapshot_200_Projection_z_density.png</div><div class="">yt : [INFO     ] 2015-08-10 <b class="">14:56:21</b>,922 Saving plot snapshot_200_Projection_z_density.png</div></div><div class="">```</div><div class=""><br class=""></div><div class="">That’s <b class="">296</b> times slower!!!</div><div class=""><br class=""></div><div class="">This is likely to be a very specific problem with the server. But I’d like to know if anyone else has encountered similar problems before so I can learn from your experience. For now, I have no idea what could have gone wrong.</div><div class=""><br class=""></div><div class="">BTW, I’m using TSCC (<a href="http://idi.ucsd.edu/computing/" target="_blank" class="">http://idi.ucsd.edu/computing/</a>) at UC San Diego, if you happen to know it.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Bili</div></div><br class="">_______________________________________________<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="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></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>