[yt-users] data.LeftEdge with slice?

Elizabeth Tasker taskere at mcmaster.ca
Thu Aug 18 10:10:21 PDT 2011


>> 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



More information about the yt-users mailing list