[yt-users] error Zero sized dimension for non-unlimited dimension
Jean-Claude Passy
jcpassy at gmail.com
Thu Jun 3 17:50:25 PDT 2010
Dear all,
I am encountering some issues when running the script enclosed:
######################################################################################################
loading DM_part/DD0001/CommonEnvelope0001
yt INFO 2010-06-03 17:36:57,270 Storing the binary hierarchy
yt INFO 2010-06-03 17:36:57,523 Gathering a field list
(this may take a moment.)
Traceback (most recent call last):
File "script2body.py", line 39, in <module>
region = data.h.region([0.5, 0.5, 0.5], [0.0, 0.0, 0.0], [1.0, 1.0,
1.0])
File
"/rpod2/jcpassy/yt-x86_64/src/yt-trunk-svn/yt/lagos/OutputTypes.py",
line 150, in _get_hierarchy
self.__hierarchy = self._hierarchy_class(self,
data_style=self.data_style)
File
"/rpod2/jcpassy/yt-x86_64/src/yt-trunk-svn/yt/lagos/HierarchyType.py",
line 374, in __init__
AMRHierarchy.__init__(self, pf, data_style)
File
"/rpod2/jcpassy/yt-x86_64/src/yt-trunk-svn/yt/lagos/HierarchyType.py",
line 64, in __init__
self._detect_fields()
File
"/rpod2/jcpassy/yt-x86_64/src/yt-trunk-svn/yt/lagos/HierarchyType.py",
line 615, in _detect_fields
self.save_data(list(field_list),"/","DataFields",passthrough=True)
File
"/rpod2/jcpassy/yt-x86_64/src/yt-trunk-svn/yt/lagos/HierarchyType.py",
line 192, in _save_data
arr = myGroup.create_dataset(name,data=array)
File
"/rpod2/jcpassy/yt-x86_64/lib/python2.6/site-packages/h5py-1.2.0-py2.6-linux-x86_64.egg/h5py/highlevel.py",
line 353, in create_dataset
return Dataset(self, name, *args, **kwds)
File
"/rpod2/jcpassy/yt-x86_64/lib/python2.6/site-packages/h5py-1.2.0-py2.6-linux-x86_64.egg/h5py/highlevel.py",
line 856, in __init__
space_id = h5s.create_simple(shape, maxshape)
File
"/rpod2/jcpassy/yt-x86_64/lib/python2.6/site-packages/h5py-1.2.0-py2.6-linux-x86_64.egg/h5py/_sync.py",
line 88, in wrap
return func(*args, **kwds)
File "h5s.pyx", line 106, in h5py.h5s.create_simple (h5py/h5s.c:973)
h5py._stub.ValueError: Zero sized dimension for non-unlimited dimension
(Function arguments: Bad value)
######################################################################################################
The weird thing is that if I run the script again, it works and then
breaks when trying to read the next file
(DM_part/DD0001/CommonEnvelope0001), and so on... Data contain only 2
particles without gas and as far as I remember, I could execute those
commands without problems before.
I would appreciate if someone could help me with that.
Thanks a lot,
Jean-Claude
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20100604/c0d8adf3/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: script2body.py
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20100604/c0d8adf3/attachment.txt>
More information about the yt-users
mailing list