A Monday 03 May 2010 16:00:00 escriguéreu:
> Hi Francesc:
> 
> I've attached a couple of files:
> 
> 1) main.cpp.gz - the program I used to generate the hdf5 file. I should
> mention that I am using HDF5 1.8.4 with enable-parallel
> 
> 2) test.h5 - the hdf5 file that was generated. The file contains only 1
>  data set at /arr that is 5x5x5 with length 3 array atoms.
> 
> I opened python and entered:
> 
> import tables
> f = tables.openFile("test.h5", "a")
> f.root.arr.copy(newparent=f.root, newname="arr2")
> 
> I am using pytables 2.1.2
> 
> I hope this helps.

Okay.  This did not work because NumPy does not support having 
multidimensional types with homogeneous arrays.  But as HDF5 does have support 
for this, I went ahead and managed to keep the original shape of the atom 
during the copy.  More details in:

http://www.pytables.org/trac/ticket/275

Thanks for reporting!

-- 
Francesc Alted

------------------------------------------------------------------------------
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to