Dear Milad,

A Friday 14 November 2008, Milad Fatenejad escrigué:
> Hello:
>
> I have been using pytables to create HDF5 files which are then read
> in by another code, written in C++ which uses the 1.8.1 version of
> the HDF5 library. Everything was going well until I made a table with
> 1 record in pytables, then appended to the table in the C++ code
> using the H5TB interface. No matter how many records I appended in
> C++, only 2 records would actually be stored - the original one I
> made with pytables and the last record I appended in C++. If I create
> the table in C++, I can append to it without problems...
>
> My main question is: Is it OK to write/modify HDF5 tables made with
> pytables in C/C++? And to what extent are HDF5 files generated in
> pytables usable by other HDF5 tools that don't use pytables?

Mmh, tables made with PyTables should be exactly the same than those 
created with the H5TB interface (in fact, PyTables borrowed the format 
from H5TB), so they should be completely compatible.  Can you send the 
C++ code where you are adding the new records?

> I have a feeling that there can be incompatibilities because tables
> generated by pytables have a VERSION attribute set to 2.6, while
> those generated in C/C++ with hdf5 v1.8.1 have a VERSION attribute
> set to 2.0 (although I am not sure exactly what this version number
> means...)

This is metadata information that is only used internally in PyTables 
mainly for making distinction of the several kinds of indexes 
(available in the Pro version).  So, I'd say that having different 
VERSION values should not be a problem for what you are trying to do.

Cheers,

-- 
Francesc Alted

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to