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

Todd Miller jmiller at stsci.edu
Sat Nov 12 04:24:39 EST 2005


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




More information about the NumPy-Discussion mailing list