Hi Dan,
Can you try doing:
ds.index
right after ds=yt.load ? If that fixes it, then I think the solution
will be to make sure the fields have been instantiated before any
quantities get called.
On Fri, Mar 18, 2016 at 2:52 PM, Daniel Fenn
Hi,
I'm trying to calculate the center of mass of my FLASH dataset using the following:
import yt ds = yt.load("path/to/file") ad = ds.all_data() print ad.quantities.center_of_mass()
However, the last line throws the error: 'FLASHDataset' object has no attribute 'field_info' .
As a test, I ran
ds.field_info["flash", "temp"]
which gives the same error.
Can anyone give me any advice on what's going on and how to get past this error?
Thanks,
Dan
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org