Hi Andrey,

A Wednesday 08 December 2010 14:59:52 Andrey Sobolev escrigué:
> Could anyone please suggest how to safely remove a row from a
> vlarray?
> 
> A question seems trivial but looks like there is no standard method
> for that.
> I was trying to find answer within pytables-archives but maybe missed
> it, sorry.

Sorry, but removing a row from a VLArray (Array in general) is not 
implemented (the Table object is the only one supporting it).

The ultimate reason for this is that HDF5 itself does not support such a 
operation, so that must be faked by PyTables.  The method is relatively 
easy: move the rows after the one to be removed one position up, and 
then truncate the dataset (see `Leaf.truncate(size)`).

So, you may want to implement this procedure for your own case, provide 
a patch for PyTables, or just file a ticket (so that I remember to add 
this in a future release).

Hope this helps,

-- 
Francesc Alted

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to