<div dir="ltr">I've opened this pull request, which should fix the memory leak:<div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2188">https://bitbucket.org/yt_analysis/yt/pull-requests/2188</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 2:46 PM, John ZuHone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">All you have to do to get mesh construction to run is access the “index” attribute from the dataset:<div><br></div><div>ds = yt.load(something)</div><div>ds.index</div><div><div class="h5"><div><br></div><div><div><blockquote type="cite"><div>On May 20, 2016, at 3:40 PM, Jiang, Yanfei <<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>> wrote:</div><br><div><div dir="ltr">Hi John,<div><br></div><div>   I just paste the script. You can replay the filename with the data  you have (I forget which file I sent to you before). </div><div><br></div><div>   I should say that at minimum, I should do region selection so that the progress bar for mesh construction shows up. Then the memory leaking issue also shows up.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 3:25 PM, John Zuhone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Yan-Fei,<div><br></div><div>Can you send a script that shows this? </div><div><br></div><div>Try pasting the script with <a href="http://paste.yt-project.org/" target="_blank">paste.yt-project.org</a></div><div><br></div><div>Best,</div><div><br></div><div>John</div><div><div><div><br><div><div><blockquote type="cite"><div>On May 20, 2016, at 3:24 PM, Jiang, Yanfei <<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>> wrote:</div><br><div><div dir="ltr">OK. <div><br></div><div>By the way, the memory leaking issue with the new function for Athena++ seems to come from mesh construction. I tried a case with yt just reading the data without any plot, the memory usage still goes up with time. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 3:13 PM, John Zuhone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Yan-Fei,<div><br></div><div>And in the athena_pp bookmark I will set this to the default for cylindrical and spherical coordinates instead of “domain” which is what I had it set to. </div><span><font color="#888888"><div><br></div><div>John</div></font></span><div><div><div><br><div><blockquote type="cite"><div>On May 20, 2016, at 3:12 PM, Jiang, Yanfei <<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>> wrote:</div><br><div><div dir="ltr">Thank you, Nathan. This indeed is what I need. </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 3:09 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Yanfei,<div><br></div><div>So I looked a little closer at the code. It looks like the 'domain' origin sets the origin of the plot at the lower-left-hand corner of the *domain*, which for your dataset is *not* the same thing as setting the origin of the plot at the origin of the simulation's coordinate system.</div><div><br></div><div>What you want is to set the origin to 'native', which sets the origin to be the same as the origin of the simulation coordinate system. Here is an example with that choice:</div><div><br></div><div><a href="https://gist.github.com/e61ac07b44e5083ea88fcf1bf24a3459" target="_blank">https://gist.github.com/e61ac07b44e5083ea88fcf1bf24a3459</a><br></div><div><br></div><div>Hope that's helpful,</div><div><br></div><div>Nathan</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 19, 2016 at 3:29 PM, Jiang, Yanfei <span dir="ltr"><<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Nathan,<div><br></div><div>   Here is a much smaller data file that you can try:</div><div><br></div><div><a href="https://drive.google.com/file/d/0ByTG4wYr-7aOdUxUR0dMWGZVQmM/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0ByTG4wYr-7aOdUxUR0dMWGZVQmM/view?usp=sharing</a><br></div><div><br></div><div>Now the inner boundary is 28 and it is labeled as 0. </div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 19, 2016 at 3:07 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Yanfei,<div><br></div><div>John ZuHone gave me access to your dataset - I think the issue is that ds.domain_left_edge is [2, 0, 0], and that is confusing the code that generates the plot coordinates for spherical geometries.</div><div><br></div><div>I don't think this is an issue with the frontend, but a general issue with plotting data in spherical coordinates with an inner radial boundary.</div><div><br></div><div>I don't have any test datasets besides yours that look like this, and yours is pretty large, so it would be nice to have a smaller dataset to play with.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, May 19, 2016 at 10:59 AM, Jiang, Yanfei <span dir="ltr"><<a href="mailto:yanfei.jiang@cfa.harvard.edu" target="_blank">yanfei.jiang@cfa.harvard.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>   I am trying to make a slice plot with the new capability for spherical polar grid in Athena++ data John developed. The attached notebook.png shows what I am doing. I take a slice and the origin is set to "domain". The image.png is the image from the notebook. In the slice image, the empty space near the center corresponds to the inner radial boundary of the original spherical coordinate, which is 2 in this case. Therefore, I think the x stick where is 0 in the plot should be 2. Do you know any way to fix this?</div><div><br></div><div>Thanks. <span><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Yan-Fei Jiang<div><br><div>Einstein Fellow</div><div>Harvard-Smithsonian Center for Astrophysics</div><div>60 Garden Street, Cambridge MA USA 02138</div><div></div></div></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Yan-Fei Jiang<div><br><div>Einstein Fellow</div><div>Harvard-Smithsonian Center for Astrophysics</div><div>60 Garden Street, Cambridge MA USA 02138</div><div></div></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Yan-Fei Jiang<div><br><div>Einstein Fellow</div><div>Harvard-Smithsonian Center for Astrophysics</div><div>60 Garden Street, Cambridge MA USA 02138</div><div></div></div></div></div>
</div>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Yan-Fei Jiang<div><br><div>Einstein Fellow</div><div>Harvard-Smithsonian Center for Astrophysics</div><div>60 Garden Street, Cambridge MA USA 02138</div><div></div></div></div></div>
</div>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></div></blockquote></div><br></div></div></div></div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Yan-Fei Jiang<div><br><div>Einstein Fellow</div><div>Harvard-Smithsonian Center for Astrophysics</div><div>60 Garden Street, Cambridge MA USA 02138</div><div></div></div></div></div>
</div>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>