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

Nathan Goldbaum nathan12343 at gmail.com
Fri Mar 18 13:33:09 PDT 2016


I've issued a pull request that fixes this issue:

https://bitbucket.org/yt_analysis/yt/pull-requests/2051/create-the-index-before-calling-derived/diff

On Fri, Mar 18, 2016 at 2:58 PM, Daniel Fenn <dsfenn at gmail.com> wrote:

> Ah, that worked!
>
> Thanks!
>
> Dan
>
> 2016-03-18 15:55 GMT-04:00 Matthew Turk <matthewturk at gmail.com>:
>
>> 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
>> >
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160318/41550816/attachment.html>


More information about the yt-users mailing list