A Monday 31 January 2011 13:08:09 Raphael Weingartner escrigué: > Thanks for your answer! Maybe a clearer way to ask my question is: > How do I get Pytables to read in the data as a Table instead of an > Array from the beginning?
PyTables cannot do that automagically. By default, all datasets made of native HDF5 compound (heterogeneous) types are loaded as Table objects, while that atomic (homogeneous) types are loaded as *Array types. So, I'm afraid that you will need to make the conversion prior to load you data as a Table object. > The data was generated with another application so given that the h5 > files already exist, it would be great to access that data using the > nice fast features of pytables Tables instances. The alternative is > to recast all my h5 files into new h5 files that pytables then reads > in as a Table. This is not my preferred plan of attack as each time > I recast a file it takes on the order of 10 minutes and I have 100s > of files. Another possibility is that your application can generate datasets made of compound datatypes directly. This would save a lot of conversions. -- Francesc Alted ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users