[yt-users] constructing cic error on load: "YTOutputNotIdentified"

Matthew Turk matthewturk at gmail.com
Tue Jul 1 12:28:03 PDT 2014


Hi Brendan,

Try supplying the first one -- "snap_000.0.hdf5".

-Matt

On Tue, Jul 1, 2014 at 2:25 PM, Brendan Griffen
<brendan.f.griffen at gmail.com> wrote:
> It certainly exists:
>
> bigbang% pwd
>
> /bigbang/data/AnnaGroup/caterpillar/parent/gL100X10/outputs/snapdir_000
>
> bigbang% ls
>
> ...
>
> snap_000.156.hdf5  snap_000.213.hdf5  snap_000.40.hdf5   snap_000.99.hdf5
>
> snap_000.157.hdf5  snap_000.214.hdf5  snap_000.41.hdf5   snap_000.9.hdf5
>
> It seesm to load but not contain anything:
>
> In [15]: data =
> ytf.sph.GadgetHDF5Dataset(basepath+ext,dataset_type='gadget_hdf5')
>
> Out[15]: snap_000
>
>
>
> On Tue, Jul 1, 2014 at 3:05 PM, Nathan Goldbaum <nathan12343 at gmail.com>
> wrote:
>>
>> Does the file
>> /bigbang/data/AnnaGroup/caterpillar/parent/gL100X10/outputs/snapdir_000/snap_000
>> exist?
>>
>> What happens when you try to load it with GadgetHDF5Dataset instead of the
>> load function?
>>
>> The load function uses the _is_valid methods that are defined on each of
>> the Dataset subclasses to determine the appropriate output type - that's
>> usually the first place to look for things going wrong with loading
>> datasets.
>>
>>
>> On Tue, Jul 1, 2014 at 12:00 PM, Brendan Griffen
>> <brendan.f.griffen at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to construct the cic mesh for Gadget HDF5 snapshots and I have
>>> the following:
>>>
>>> import yt
>>>
>>> from yt.mods import *
>>>
>>> unit_base = {'UnitLength_in_cm'         : 3.08568e+21,
>>>
>>>              'UnitMass_in_g'            :   1.989e+43,
>>>
>>>              'UnitVelocity_in_cm_per_s' :      100000}
>>>
>>> pf = load(basepath+ext, unit_base = unit_base, bounding_box = bbox)
>>>
>>> Except I get the error:
>>>
>>> --> 165             pf = load(basepath+ext, unit_base = unit_base,
>>> bounding_box = bbox)
>>>
>>> /bigbang/data/bgriffen/lib/yt-x86_64/src/yt-hg/yt/convenience.pyc in
>>> load(*args, **kwargs)
>>>
>>>      73         mylog.error("None of the arguments provided to load() is
>>> a valid file")
>>>
>>>      74         mylog.error("Please check that you have used a correct
>>> path")
>>>
>>> ---> 75         raise YTOutputNotIdentified(args, kwargs)
>>>
>>>      76     for n, c in output_type_registry.items():
>>>
>>>      77         if n is None: continue
>>>
>>> YTOutputNotIdentified: Supplied
>>> ('/bigbang/data/AnnaGroup/caterpillar/parent/gL100X10/outputs/snapdir_000/snap_000',)
>>> {'bounding_box': array([[   0.        ,  149.00908955],
>>>
>>>        [   0.        ,  149.00908955],
>>>
>>>        [   0.        ,  149.00908955]]), 'unit_base':
>>> {'UnitVelocity_in_cm_per_s': 100000, 'UnitLength_in_cm': 3.08568e+21,
>>> 'UnitMass_in_g': 1.989e+43}}, but could not load!
>>>
>>> Thanks.
>>>
>>> BG
>>>
>>>
>>> _______________________________________________
>>> 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
>



More information about the yt-users mailing list