A small glitch remains in CVS numarray
Hi, I've checked CVS numarray today and yes, the problem with strided arrays seems to be gone. It does remain some small (I think) issue:
import Numeric;Numeric.__version__ '24.1' import numarray;numarray.__version__ '1.4.2' num=Numeric.array([0.,1.]) na=numarray.zeros(shape=2) na[...] = num Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: NA_DescrFromType: unknown type: -1
and also:
numarray.array(num) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/numarray/numarraycore.py", line 359, in array a = _numarray._array_from_array_struct(sequence.__array_struct__) TypeError: NA_DescrFromType: unknown type: -1
Regards, --
0,0< Francesc Altet http://www.carabos.com/ V V Cárabos Coop. V. Enjoy Data "-"
Francesc Altet wrote:
Hi,
I've checked CVS numarray today and yes, the problem with strided arrays seems to be gone. It does remain some small (I think) issue:
import Numeric;Numeric.__version__
'24.1'
import numarray;numarray.__version__
'1.4.2'
num=Numeric.array([0.,1.]) na=numarray.zeros(shape=2) na[...] = num
Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: NA_DescrFromType: unknown type: -1
and also:
numarray.array(num)
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/numarray/numarraycore.py", line 359, in array a = _numarray._array_from_array_struct(sequence.__array_struct__) TypeError: NA_DescrFromType: unknown type: -1
Regards,
This was a cut-and-pasto in numarray's scipy type definition table. It's fixed in CVS. Thanks, Todd
participants (2)
-
Francesc Altet -
Todd Miller