A Thursday 22 May 2008, Ivan Vilata i Balaguer escrigué: > Glenn (el 2008-05-21 a les 21:49:45 +0000) va dir:: > > I understand. I found I can achieve almost what I want by first > > using truncate(1) on the array. If truncate(0) were supported, then > > I would not have to deal with any special cases. Oh well. Thanks > > again. > > I think you're out of luck here, because the limitation of not being > able to truncate a dataset to 0 rows stems from the HDF5 library > itself. > > :( However, we talked about the issue with the HDF5 people some time > > ago and it looks like it's an implementation limitation and not a > design one, so you may want to get in contact with HDF5 developers > and see if you can convince them into fixing the thing.
Oh yes, I completely forgot about this: Quincey Koziol, one of the main HDF5 developers, warned me some months ago that this was fixed in HDF5 1.8.0 beta2. I have had a quick check on this and it seems to work flawlessly. See: http://www.pytables.org/trac/ticket/171 for more info (and a patch! ;) Cheers, -- Francesc Altet Freelance developer Tel +34-964-282-249 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users