constructing cic error on load: "YTOutputNotIdentified"
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
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
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
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Brendan,
Try supplying the first one -- "snap_000.0.hdf5".
-Matt
On Tue, Jul 1, 2014 at 2:25 PM, Brendan Griffen
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
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
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Ok thanks Matt, though this will read the entire block 0 --> nblocks? It
did work. Thanks. Not sure why this is different, as the code worked before
I went away... :/
BG
On Tue, Jul 1, 2014 at 3:28 PM, Matthew Turk
Hi Brendan,
Try supplying the first one -- "snap_000.0.hdf5".
-Matt
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
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
On Tue, Jul 1, 2014 at 2:25 PM, Brendan Griffen
wrote: 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
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hey Brendan,
Not to beat a dead horse, but does the problem persist for snap_001 (or
some other snap that's not snap_000)? The only reason I ask is that some
flavors of gadget have weird outputs for their _000 snapshot (oftentimes
these are actually just the ICs).
-d
On Tue, Jul 1, 2014 at 3:25 PM, Brendan Griffen 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 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@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@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org _______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org _______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (4)
-
Brendan Griffen
-
Desika Narayanan
-
Matthew Turk
-
Nathan Goldbaum