> Perhaps implementing variable length strings as atoms for VLArray leaves > would be feasible (I'll probably add a ticket on this later on). What > is not planned is to implement variable length strings in Table or > other Array objects. > > OTOH, support for variable length strings as attributes is definitely > on the TODO list (and will be implemented in 2.2, most probably).
Good to know, I'll keep an eye on svn and the beta releases. This caveat noted in h5py might be useful. http://code.google.com/p/h5py/issues/detail?id=35#c2 > > If an *attribute* has a variable length string, the error is fatal > > [full exception below]. I would expect it to also come up > > UnImplemented. Since attributes are loaded when the node is retrieved > > using _g_getChild(), I can't even walk a tree (via > > n._v_children.itervalues()) that contains variable length strings as > > attributes. In the same spirit as the "UnImplemented" class, I would > > expect these attributes to simply come up as an UnImplemented type, so > > I can walk the nodes and skip them as needed (ideally via introspection). > > This is a bug. Can you try with the next patch? Progress. I get the message: tables/attributeset.py:302: DataTypeWarning: Unsupported type for attribute 'test_string_array' in node '/'. Offending HDF5 class: 3 value = self._g_getAttr(self._v_node, name) And the attribute is now copied incorrectly -- it becomes a fixed size string, and the value seems to be the pointer value, instead of the text. I'd expect it to be suppressed during copy like UnImplemented nodes are. I've tweaked attributeset to make it work for now, simply dropping these attributes from the copy operation. As for my original task - I think I'm going with plan B: make a copy, then have pytables code delete the groups I want to exclude, followed by a system call to h5repack to copy the entire tree. Better than writing C code, though I am stuck with creating a temporary copy if I want to preserve the original. Thanks for the quick response, ~J ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users