[SciPy-user] Serializing LSQUnivariateSpline?

David Warde-Farley dwf@cs.toronto....
Mon Jun 15 15:48:52 CDT 2009

I have a bit of a dilemma: I like the LSQUnivariateSpline wrapper, but  
I need to serialize the fitted splines, and be able to reconstruct  
them.  (I'm using pytables as a backend, by the way).

(t,c,k) pairs are slightly easier to work with in this respect but  
less descriptive and less elegant when actually using them.

The pickled description of even a simple one of these objects leans  
towards three kiliobytes, and I'm going to be working with a lot of  
them. I'm thinking of going with an HDF5 table of all the contents of  
_data as I think I  can get an okay read of what sizes and types are  
required, but what about deserializing? Is there some obvious way I'm  

Any ideas are appreciated,


More information about the SciPy-user mailing list