[Numpy-discussion] Unpickled numarray types unsable?
Francesc Alted
falted at pytables.org
Mon Jun 21 11:40:06 CDT 2004
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
More information about the Numpy-discussion
mailing list