When I run the attached example, I get the output below. What's going
wrong in test2()? How can I output the numarray record array containing
character data in test2()?
Thanks,
Gerry Wiener
Pytables version: 1.1
test1 record array: RecArray[
(20.0, 1),
(3.5, 2)
]
<class 'numarray.numarraycore.NumArray'>
test1 succeeded
test2 record array: RecArray[
(20.0, 'ab'),
(3.5, 'cd')
]
<class 'numarray.strings.CharArray'>
Traceback (most recent call last):
File "recarray.py", line 56, in ?
main()
File "recarray.py", line 50, in main
test2()
File "recarray.py", line 42, in test2
tab.append(r)
File "/d1/local/lib/python2.4/site-packages/tables/Table.py", line
1252, in append
raise ValueError, \
ValueError: rows parameter cannot be converted into a recarray object
compliant with table '/data_records (Table(0,)) 'my hdf''. The error
was: <buffer formats don't match those provided by the format specification>
|