[yt-users] FixedResolutionBuffer problem

Matthew Turk matthewturk at gmail.com
Wed Apr 27 16:28:18 PDT 2011


Hi Stephen,

The first example should be slice, not proj.  My typo.  Please feel
free to correct it in the doc repo.

-Matt

On Wed, Apr 27, 2011 at 7:24 PM, Stephen Skory <s at skory.us> wrote:
> Hi all,
>
> I am attempting to follow the examples of how to make a fixed
> resolution buffer, and I have run into a problem. If I follow the
> first example on this page
> <http://yt.enzotools.org/doc/analyzing/generating_processed_data.html>:
>
> sl = pf.h.proj(0, 0.6)
> frb = FixedResolutionBuffer(sl, (0.3, 0.5, 0.6, 0.8), (512, 512))
> my_image = frb["Density"]
>
> I get this error <http://paste.enzotools.org/show/1603/> which makes
> it look like it's trying to use the second term of .proj() '0.6' as a
> data field. So, if I change things to:
>
> sl = pf.h.proj(0, 'Density')
>
> I get this error <http://paste.enzotools.org/show/1604/> complaining
> about 'px'. Am I doing something wrong, or is this a bug? I am using
> 4216:5c6f932b9f34. Thanks!
>
>
> --
> Stephen Skory
> s at skory.us
> http://stephenskory.com/
> 510.621.3687 (google voice)
> _______________________________________________
> 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