[yt-users] disk_analysis

Matthew Turk matthewturk at gmail.com
Mon Oct 4 09:14:42 PDT 2010


Hi Stephen,

The lack of updates to the examples and documentation is why only the
"stable" branch is on the front page of the yt homepage.  Sorry about
the delay in updating them -- for the most part it's only a matter of
changing imports, but those changes will have to be reflected in
documentation.  (Many are, on the website:
http://yt.enzotools.org/wiki/yt-2.0 )  For instance, in this case,
that's the only difference necessary.

For me, the example script worked exactly if I only changed the imports:

import yt.visualization.volume_rendering.api as vr
import yt.visualization.image_writer as iw

You need to import volume_rendering in advance of parameter file
instantiation, as noted here:
http://yt.enzotools.org/doc/extensions/volume_rendering.html#the-simple-volume-rendering-interface

-Matt

On Mon, Oct 4, 2010 at 8:43 AM, Stephen Skory <stephenskory at yahoo.com> wrote:
> Hi Matt,
>
>> a) It was never very good (he  says, as author of the module)
>> b) it was made obsolete by the  ProjectionTransferFunction using the
>> volume renderer.
>
>
> Good to know, that's for clearing that up!
>
> Can you help me clear this problem up? I'm trying to follow this [1] example,
> but update it for 2.0, but I'm getting this [2] error. Can you help me figure
> out what I'm doing wrong? Thanks!
>
> [1] http://yt.enzotools.org/doc/cookbook/recipes.html#cookbook-offaxis-projection
>
> [2] http://paste.enzotools.org/show/1264/
>
>  _______________________________________________________
> sskory at physics.ucsd.edu o__ Stephen Skory
> http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
> ________________________________(_)_\(_)_______________
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list