From: Francesc A. <fa...@ca...> - 2005-05-11 16:42:35
|
A Dimecres 11 Maig 2005 16:09, Antonio Valentino va escriure: > > - When you save numarray scalars, they become saved as HDF5 scalars as > > well. I'm hesitating here because I wonder myself whether saving them > > as a pickle would be better. I really prefer the implemented solution > > but, what do you think about? > > In my opinion saving numarray scalars as HDF5 scalars is the best choice. > The problem is that when you get it back from file you always have a > Python_int or Python _float. > Attributes can't have a "Flavor" > That is why I suggested to map HDF5 numeric attributes onto numarray > objects and handle all python objects using cpickle strings. > This is absolutely unambiguous and allow the user to have the full control > over HDF5 attributes. Yeah, may be you are right. So, your proposal is to pickle numarray scalars, so that they do not interfere with Python scalars deserialization, isn't it? I'd like to hear more opinions on that matter. > Ofcourse whatever solution you decide to adopt I will be happy to help yo= u. > Let me know your decisions. Well, if you are willing to manage the case for scalar numarray pickling, you are very welcome! Ad=E9u, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |