[Numpy-discussion] Home for pyhdf5io?

Robert Kern robert.kern@gmail....
Sat May 23 15:59:00 CDT 2009


On Sat, May 23, 2009 at 06:47, David Warde-Farley <dwf@cs.toronto.edu> wrote:
> On 23-May-09, at 5:36 AM, Albert Thuswaldner wrote:
>
>> So i guess in the long term i have to also add pickling support. In
>> the short term i will add warnings for the data types that are not
>> supported.
>
> In order to ensure optimal division of labour, I'd suggest simply
> basing your pickling support on hdf5pickle, and including it as an
> optional dependency, that you detect at runtime  (just put the import
> in a try block and catch the ImportError). If you have hdf5pickle
> installed, pyhdf5io will pickle any objects you try to use save()
> with, etc. Otherwise it will just work the way it does now.

That would cause difficulties. Now the format of your data depends on
whether or not you have a package installed. That's not a very good
level of control.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the Numpy-discussion mailing list