[Numpy-discussion] numarray: "concatenate along new axis" returns 'unexpected' type

Peter Verveer verveer at embl.de
Tue Feb 8 12:47:36 EST 2005


> Thanks for the info, but after updating from CVS I get a problem in 
> nd_image:
> Python 2.2.1 (#1, Feb  3 2005, 06:16:31)
> [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
> <snip>
>   File "<snip>/numarray/nd_image/_ni_support.py", line 35, in ?
>     _type_to_num = {
> AttributeError: 'module' object has no attribute 'Any'
>
> After changing:
> ...
> import numarray.numerictypes as numarrayt
> ...
> numarrayt.Any
> I then complained about
>   File "<snip>/numarray/nd_image/_ni_support.py", line 53, in ?
>     _type_to_num[numarray.UInt64] = 9
> AttributeError: 'module' object has no attribute 'UInt64'

Strange, I implemented this yesterday, and it works fine in my setup 
(OS X). I would think you should be able to access numarray.Any and 
numarray.UInt64 without import numarray.numerictypes. Maybe Todd can 
say what the behaviour of numarray should be here.

Peter





More information about the NumPy-Discussion mailing list