From: Francesc A. <fa...@py...> - 2004-06-21 18:39:31
|
Hi, I'm experiencing problems when using a numarray datatype after pickle/unpickle it: >>> import numarray >>> import pickle >>> c=pickle.dumps(numarray.Float64) >>> t=pickle.loads(c) >>> t Float64 >>> na=numarray.array(type=t, shape=(2,)) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/numarray/numarraycore.py", line 321, in array return NumArray(buffer=sequence, shape=shape, type=type) RuntimeError: _numarray_init: can't get typeno for type Perhaps this is a bug and the typeno attribute is missed when reconstructing the type? Cheers, -- Francesc Alted |