data.LeftEdge with slice?
Hi, I have a field which uses data.LeftEdge, but when I try to create a slice from this, it says: AttributeError: 'AMRSlice' object has no attribute 'LeftEdge' Is this because the data is not 3d? I was trying valiantly to avoid having to load all that in! Elizabeth
Hi Elizabeth, On Thu, Aug 18, 2011 at 1:05 PM, Elizabeth Tasker <taskere@mcmaster.ca> wrote:
Hi,
I have a field which uses data.LeftEdge, but when I try to create a slice from this, it says:
AttributeError: 'AMRSlice' object has no attribute 'LeftEdge'
Is this because the data is not 3d? I was trying valiantly to avoid having to load all that in!
Yup, LeftEdge is only defined for grids and grid-like objects. Perhaps there's a better way to get at the information you need? There are spatial fields like x,y,z and so on. -Matt
Elizabeth _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi,
I have a field which uses data.LeftEdge, but when I try to create a slice from this, it says:
AttributeError: 'AMRSlice' object has no attribute 'LeftEdge'
Is this because the data is not 3d? I was trying valiantly to avoid having to load all that in!
Yup, LeftEdge is only defined for grids and grid-like objects. Perhaps there's a better way to get at the information you need? There are spatial fields like x,y,z and so on.
-Matt
Yep - I can work with those. Thanks for the suggestion. Elizabeth
participants (2)
-
Elizabeth Tasker
-
Matthew Turk