[Numpy-discussion] A small glitch remains in CVS numarray

Francesc Altet faltet at carabos.com
Fri Nov 11 00:50:23 CST 2005


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
 "-"






More information about the Numpy-discussion mailing list