A Divendres 11 Maig 2007 05:47, Eric Jonas escrigué: > 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 of compounds, sorry about that. It does support, however, compounds of compounds (nested tables in PyTables jargon) and compounds of arrays, so instead of declaring a column as an array of compounds, you may want to declare it as a compound of arrays. HTH, -- >0,0< Francesc Altet http://www.carabos.com/ V V Cárabos Coop. V. Enjoy Data "-" ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users