<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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); position: static; z-index: auto;">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="background-color: rgb(92, 64, 4); color: rgb(255, 255, 255); font-family: Monaco;">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>                   <span style="background-color: rgb(92, 64, 4); color: rgb(255, 255, 255); font-family: Monaco;">cam = pf.h.camera(c, L, W, (N,N), tf, volume=volume, no_ghost=False, north_vector=Ldm,steady_north=True)</span></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="background-color: rgb(92, 64, 4); color: rgb(255, 255, 255); font-family: Monaco;">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><br></div><div><br class="Apple-interchange-newline"><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">cen@astro.princeton.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc 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 href="javascript:;" onclick="_e(event, 'cvml', '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>
</blockquote></div>
</blockquote></div><br></div></body></html>