From: Francesc A. <fa...@ca...> - 2007-05-11 10:53:35
|
A Divendres 11 Maig 2007 05:47, Eric Jonas escrigu=E9: > Hello! Has anyone managed to get arrays of H5T_COMPOUND working in > pytables, or found a workaround? I just wrote a bunch of C to create my > nested array of compound data types, and I was all set to access this > data from pytables, when I read > > http://www.pytables.org/docs/manual-2.0rc1/ape.html > > which seems to suggest that doing something like > > DATATYPE H5T_COMPOUND { > H5T_STD_U8LE "src"; > H5T_STD_U64LE "time"; > H5T_ARRAY { [4] > H5T_COMPOUND { > H5T_STD_U8LE "filtid"; > H5T_STD_U8LE "valid"; > H5T_STD_I32LE "threshold"; > H5T_ARRAY { [32] H5T_STD_I32LE } "wave"; > } } "waveforms"; > } > (from h5dump) just isn't going to work. This is really a bummer as > pytables was one of the primary reasons I wanted to use HDF5 for this > project. If anyone can recommend any work-arounds, or similar data > organizations that work, I'd love to hear it. PyTables (neither 1.x or 2.x series) doesn't implement support for arrays o= f=20 compounds, sorry about that. It does support, however, compounds of=20 compounds (nested tables in PyTables jargon) and compounds of arrays, so=20 instead of declaring a column as an array of compounds, you may want to=20 declare it as a compound of arrays. HTH, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |