[yt-users] Error on loading clumps

Matthew Turk matthewturk at gmail.com
Thu Jul 12 15:38:36 PDT 2012


Hi Eve,

Looks like it might be an older version of h5py causing troubles.  Can
you send me (off-list) your save file and I'll take a shot at seeing
if there is in fact a problem?

-Matt

On Thu, Jul 12, 2012 at 3:22 PM, Eve Lee <elee at cita.utoronto.ca> wrote:
> Hello,
>
> I'm trying to load clumps that I have saved using pf.h.save_object but I
> seem to get some error as attached below. I had no trouble loading these
> clumps with older version of yt (last year's) so I'm not sure what's going
> on...
>
> Thanks in advance!
>
> Best Regards,
>
> Eve
>
> Error:
>
> --------------------------------------------------------------------------
> ValueError                                Traceback (most recent call last)
> /mnt/raid-project/murray/elee/enzo/ic_pn/res_128/v2.0/gravon_staron/short_dt/<ipython-input-4-dfa9a6552cd3>
> in <module>()
> ----> 1 clump = pf.h.load_object("Clump")
>
> /opt/python/2.7.1-mkl/lib/python2.7/site-packages/yt-2.3-py2.7-linux-x86_64.egg/yt/data_objects/hierarchy.pyc
> in load_object(self, name)
>     285         under the name *name* on the node /Objects.
>     286         """
> --> 287         obj = self.get_data("/Objects", name)
>     288         if obj is None:
>     289             return
>
> /opt/python/2.7.1-mkl/lib/python2.7/site-packages/yt-2.3-py2.7-linux-x86_64.egg/yt/data_objects/hierarchy.pyc
> in get_data(self, node, name)
>     314         full_name = "%s/%s" % (node, name)
>     315         try:
> --> 316             return self._data_file[full_name][:]
>     317         except TypeError:
>     318             return self._data_file[full_name]
>
> /opt/python/2.7.1-mkl/lib/python2.7/site-packages/h5py-2.0.1-py2.7-linux-x86_64.egg/h5py/_hl/dataset.pyc
> in __getitem__(self, args)
>     301         if self.shape == ():
>     302             fspace = self.id.get_space()
> --> 303             selection = sel2.select_read(fspace, args)
>     304             arr = numpy.ndarray(selection.mshape, dtype=new_dtype)
>     305             for mspace, fspace in selection:
>
> /opt/python/2.7.1-mkl/lib/python2.7/site-packages/h5py-2.0.1-py2.7-linux-x86_64.egg/h5py/_hl/selections2.pyc
> in select_read(fspace, args)
>      22
>      23     if fspace.shape == ():
> ---> 24         return ScalarReadSelection(fspace, args)
>      25
>      26     raise NotImplementedError()
>
> /opt/python/2.7.1-mkl/lib/python2.7/site-packages/h5py-2.0.1-py2.7-linux-x86_64.egg/h5py/_hl/selections2.pyc
> in __init__(self, fspace, args)
>      10             self.mshape = ()
>      11         else:
> ---> 12             raise ValueError("Illegal slicing argument for scalar
> dataspace")
>      13
>      14         self.mspace = h5s.create(h5s.SCALAR)
>
> ValueError: Illegal slicing argument for scalar dataspace
>
> _______________________________________________
> 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