[yt-dev] TipsyDataset Will Not Load, and Requires Parameter File

Cameron Hummels chummels at gmail.com
Wed Apr 16 15:23:24 PDT 2014


I have tested this.  I was running from within the agora dataset directory,
which shouldn't make a different.  I went to its parent directory and
included the full path, but it still fails.  I've tried this on another
system with the tip, and it works OK, so I'm trying to figure out what went
awry on this system.  Hmm...


On Wed, Apr 16, 2014 at 3:15 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> One difference I see between our two sets of commands is the filename. Can
> you double check?
>
> Matt
> On Apr 16, 2014 6:12 PM, "Cameron Hummels" <chummels at gmail.com> wrote:
>
>> I am also on that changeset, and it fails with the errors given above.
>>
>>
>> On Tue, Apr 15, 2014 at 7:02 PM, Matthew Turk <matthewturk at gmail.com>wrote:
>>
>>> Hi Cameron,
>>>
>>> On Tue, Apr 15, 2014 at 8:10 PM, Cameron Hummels <chummels at gmail.com>
>>> wrote:
>>> > Hi everyone,
>>> >
>>> > I was trying to use yt 3.0 with the Gasoline sample dataset that we
>>> have
>>> > available on http://yt-project.org/data , and it fails in two ways:
>>> >
>>> > 1) yt cannot figure out what the dataset is using the simple "load"
>>> command
>>> > as in:
>>> >
>>> > from yt.mods import *
>>> > ds = load(filename)
>>> > ...
>>> > yt.utilities.exceptions.YTOutputNotIdentified: Supplied
>>> ('agora_1e11.0040',)
>>> > {}, but could not load!
>>> >
>>> >
>>> >
>>> > 2) When I manually ask it to see the file as a TipsyDataset, it also
>>> fails,
>>> > as it expects parameters to be set:
>>> >
>>> > from yt.mods import *
>>> > ds = TipsyDataset(filename)
>>> > ...
>>> >   File
>>> >
>>> "/Users/chummels/src/yt-i386/src/yt-hg/yt/frontends/sph/data_structures.py",
>>> > line 396, in __init__
>>> >     self.parameters['nbodies'],
>>> > AttributeError: 'TipsyDataset' object has no attribute 'parameters'
>>> >
>>> >
>>> > This seems like a bug.  Any ideas as to a solution?  This dataset did
>>> not
>>> > come with a parameter file for it.
>>>
>>> I'm on changeset 5acca4b24803, which is the tip of yt-3.0, and it
>>> works fine for me.
>>>
>>> import yt
>>> ds = yt.load("agora_1e11.00400/agora_1e11.00400")
>>> p = yt.ProjectionPlot(ds, "x", ("deposit", "all_density"))
>>> p.save()
>>>
>>> -Matt
>>>
>>> >
>>> > Cameron
>>> >
>>> >
>>> > --
>>> > Cameron Hummels
>>> > Postdoctoral Researcher
>>> > Steward Observatory
>>> > University of Arizona
>>> > http://chummels.org
>>> >
>>> > _______________________________________________
>>> > yt-dev mailing list
>>> > yt-dev at lists.spacepope.org
>>> > http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>> >
>>> _______________________________________________
>>> yt-dev mailing list
>>> yt-dev at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>>
>>
>>
>>
>> --
>> Cameron Hummels
>> Postdoctoral Researcher
>> Steward Observatory
>> University of Arizona
>> http://chummels.org
>>
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>
>>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>


-- 
Cameron Hummels
Postdoctoral Researcher
Steward Observatory
University of Arizona
http://chummels.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140416/67391c90/attachment.htm>


More information about the yt-dev mailing list