Francesc,

many thanks for the suggestion! I'm just in a process of writing you that
I've tried to move rows and it does not work for vlarray)))

Good. Then an option is copying vlarray into a brand-new vlarray - IMHO I
suppose in our (G-Node) context "removal" is not a popular operation, so it
should not be a problem.

Thanks!

Andrey


2010/12/8 Francesc Alted <fal...@pytables.org>

> 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
>
------------------------------------------------------------------------------
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