Hi Renyue,

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.

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.

Nathan

On Saturday, March 29, 2014, Renyue Cen <cen@astro.princeton.edu> wrote:
Hi folks,

Some time ago John Wise kindly gave me a yt script that uses AMRKDTree to speed up "camera" 3-d
rendering, it worked very well and fast (takes like a few minutes to do a rendering of a galaxy with 2048x2048 pixel).
It looks like

volume = AMRKDTree(pf,   le=le,   re=re,  fields=["Density"],   no_ghost=False)

then used in
cam = pf.h.camera(c, L, W, (N,N), tf, volume=volume, no_ghost=False, north_vector=Ldm,steady_north=True)

It appears that yt has evolved and the "volume ..." statement no longer works.
Is there a solution to that in the newer version?

Alternatively, is there another speedy way to do 3-d rendering?

Thanks very much,
Renyue

_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org