Hi, thanks for the quick response!
On Wed, Jan 12, 2011 at 11:52 AM, Francesc Alted <fal...@pytables.org> wrote: > A Wednesday 12 January 2011 16:56:25 Frédéric Bastien escrigué: >> Hi, >> >> I'm trying pytables and I hit a problem: the class >> tables.earray.EArray don't support deepcopy. > > It does. Use the `copy()` method: > > http://www.pytables.org/docs/manual/ch04.html#id340646 I mean that it don't support the copy.deepcopy method from the copy module. We use it, but I can work around it with "my_earray._v_file.mode" and the array.copy() function that you talked about. >> The other option I see is to create a CArray instead. The problem is >> how to create one that don't fit in memory? My file compressed take >> 43G. > > You can also do that if you want (although the EArray venue is > recommended). Just create the CArray, and then fill it with data > chunks. Something like: > > my_carray = h5f.createCArray(..., shape=(200,300,500), ...) > for i in xrange(my_array.shape[0]): > my_carray[i] = mydata_chunk # shape for chunk is (300,500) Good idea, but I will stay with your first suggested fix. thanks Frédéric Bastien ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users