[yt-users] 'FLASHDataset' object has no attribute 'field_info'

Matthew Turk matthewturk at gmail.com
Fri Mar 18 12:55:39 PDT 2016


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 <dsfenn at gmail.com> wrote:
> 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 at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list