Christopher O'Grady
2016-09-15 00:05:18 UTC
Hi,
I'm a bit new to pytables, but reading the documentation and running with
version 3.2.0 we think the 3 line create_carray code below should work, but
it crashes. Would you have any advice? If I change the "obj=3" to a list
of python scalars then it works. Apologies if I've made an error, and
thanks...
chris
psanaphi103:src$ python
Python 2.7.10 (default, May 27 2015, 10:33:01)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
File "<stdin>", line 1, in <module>
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/file.py",
line 1248, in create_carray
chunkshape=chunkshape, byteorder=byteorder)
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/carray.py",
line 212, in __init__
byteorder, _log)
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/leaf.py",
line 262, in __init__
super(Leaf, self).__init__(parentnode, name, _log)
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/node.py",
line 270, in __init__
self._v_objectid = self._g_create()
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/carray.py",
line 217, in _g_create
if min(self.shape) < 1:
ValueError: min() arg is an empty sequence
I'm a bit new to pytables, but reading the documentation and running with
version 3.2.0 we think the 3 line create_carray code below should work, but
it crashes. Would you have any advice? If I change the "obj=3" to a list
of python scalars then it works. Apologies if I've made an error, and
thanks...
chris
psanaphi103:src$ python
Python 2.7.10 (default, May 27 2015, 10:33:01)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import tables
f = tables.File('my.h5', 'w')
f.create_carray(where='/', name='testname', obj=3)
Traceback (most recent call last):f = tables.File('my.h5', 'w')
f.create_carray(where='/', name='testname', obj=3)
File "<stdin>", line 1, in <module>
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/file.py",
line 1248, in create_carray
chunkshape=chunkshape, byteorder=byteorder)
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/carray.py",
line 212, in __init__
byteorder, _log)
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/leaf.py",
line 262, in __init__
super(Leaf, self).__init__(parentnode, name, _log)
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/node.py",
line 270, in __init__
self._v_objectid = self._g_create()
File
"/reg/g/psdm/sw/releases/ana-0.19.11/arch/x86_64-rhel7-gcc48-opt/python/tables/carray.py",
line 217, in _g_create
if min(self.shape) < 1:
ValueError: min() arg is an empty sequence
print tables.__version__
3.2.0--
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.