<div dir="ltr">Hi Renyue,<div><br></div><div>I've just tested a similar script on the same changeset that you are on and had some amount of success. With yt-2.5.1, having a completely arbitrary subvolume to build the AMRKDTree was not yet fully functional, and has since been finished up.  For example, it used to be that if your le/re edges didn't line up well with grids/cells you could run into problems. </div>

<div><br></div><div>It would be very useful to see your entire script and any output it creates.  Could you paste each using <a href="http://paste.yt-project.org/">http://paste.yt-project.org/</a> ?</div><div><br></div><div>

If the code is just taking a long time (and not erroring out), it may just be that it is taking a long time to construct the ghost zones (requires a lot of disk i/o).  One thing you could test is to use no_ghost=True in both lines of your script.  This will degrade the quality of the rendering but would be useful information to know what the root cause of the problem is.</div>

<div><br></div><div>If, on the other hand, the code is erroring out after the volume=AMRKDTree(...) call, I've seen similar behavior on yt-2.5.1, which was fixed at some point in later development. I believe if you can update to yt-2.6.1 most if not all of the problems will go away. </div>

<div><br></div><div>I hope this helps,</div><div>Sam</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 29, 2014 at 9:47 AM, Renyue Cen <span dir="ltr"><<a href="mailto:cen@astro.princeton.edu" target="_blank">cen@astro.princeton.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Nathan (and John),<div>

<br></div><div>with "yt instinfo" I got </div><div><div><div style="margin:0px;font-family:Monaco;color:rgb(255,255,255);background-color:rgb(92,64,4)">8dce70a9c689</div></div><div><br></div><div>I was not very clear in my previous email. Here is a somewhat clearer description:</div>

<div><br></div><div>If I just use: <span style="color:rgb(255,255,255);font-family:Monaco;background-color:rgb(92,64,4)">volume = AMRKDTree(pf,fields=["Density"],no_ghost=False)</span></div><div>then code does not complain about this AMRKDTree call anymore, but the subsequent call</div>

<div class=""><div>                   <span style="color:rgb(255,255,255);font-family:Monaco;background-color:rgb(92,64,4)">cam = pf.h.camera(c, L, W, (N,N), tf, volume=volume, no_ghost=False, north_vector=Ldm,steady_north=True)</span></div>

</div><div>appears to take forever to run.</div><div><br></div><div>On the other hand, if I use (I made sure the c and WW are sensible numbers):</div><div>                    <span style="color:rgb(255,255,255);font-family:Monaco;background-color:rgb(92,64,4)">volume = AMRKDTree(pf, le=c-0.5*WW,re=c+0.5*WW, fields=["Density"], no_ghost=False)</span></div>

<div>then I don't seem to pass this statement, because a print line following it does not get executed.</div><div><br></div><div>Thanks very much,</div><div>Renyue</div><div><div class="h5"><div><br></div><div><br><blockquote type="cite">

Hi Renyue,<div><br></div><div>Which version of yt are you running?  If you installed using the install script, the output of 'yt instinfo' run on the command line should be suffieicebt to figure out exactly which version you are using.</div>


<div><br></div><div>You may have to directly import AMRKDTree from yt.visualization.volume_rendering.api, although I believe it is still imported into yt.mods in the current stable release of yt.</div><div><br></div><div>


Nathan<span></span><br><br>On Saturday, March 29, 2014, Renyue Cen <<a href="mailto:cen@astro.princeton.edu" target="_blank">cen@astro.princeton.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


Hi folks,<br>
<br>
Some time ago John Wise kindly gave me a yt script that uses AMRKDTree to speed up "camera" 3-d<br>
rendering, it worked very well and fast (takes like a few minutes to do a rendering of a galaxy with 2048x2048 pixel).<br>
It looks like<br>
<br>
volume = AMRKDTree(pf,   le=le,   re=re,  fields=["Density"],   no_ghost=False)<br>
<br>
then used in<br>
cam = pf.h.camera(c, L, W, (N,N), tf, volume=volume, no_ghost=False, north_vector=Ldm,steady_north=True)<br>
<br>
It appears that yt has evolved and the "volume ..." statement no longer works.<br>
Is there a solution to that in the newer version?<br>
<br>
Alternatively, is there another speedy way to do 3-d rendering?<br>
<br>
Thanks very much,<br>
Renyue<br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
</blockquote></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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>