From: Francesc A. <fa...@ca...> - 2005-12-09 17:21:19
|
A Divendres 09 Desembre 2005 10:52, rem...@gm... va escriure: > But there's something I've done that I feel uncomfortable with (hence this > mail). Indeed I'm beginning to wonder whether adding new attributes (the > ones storing pathnames instead of 'references') was so good an idea. > Thanks to these attributes, I could almost get rid of the functions from > the HDF5 Api for Dimension Scales. But my goal was not to redo Dimension > Scales for PyTables, but rather to integrate the feature from Hdf5. Besid= es > redoing a Hdf5 feature would - to my mind - be contrary to the PyTables=20 > philosophy. If I could get the pathname of a dataset from its 'reference', > I wouldn't have to add these attributes. And my work could be greately > simplified. I've asked one of the Hdf5 team about this point, but accordi= ng > to him it's currently not possible. > But maybe Hdf5 could be slightly modified, or maybe you know an other way > to work around my problem (given that you certainly know much more about > Hdf5 than I do). Well, I am not very used to references in HDF5 (in fact, this is my first contact with them), but it is indeed unfortunate that you cannot derive the pathname of a dataset by dereferencing a HDF5 reference. I would suggest you to continue maintaining the REF_LIST and DIM_LIST attributes in order to keep track of the different dimension scales associations. Of course, this represents a deviation from the 'standard', but as it is an addition and not a modification, I think it is not grave at all (in fact, PyTables has many other additional attributes than the 'standard' in HDF5_HL objects). If in the future we can figure out how to derive pathnames from dereferences, then we can consider getting rid of the REF_LIST and DIM_LIST attributes. Meanwhile, I do hope that it won't be too difficult maintaining those attributes in your implementation of dimension scales. Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |