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

Todd Miller jmiller at stsci.edu
Tue Feb 8 13:30:38 CST 2005


On Tue, 2005-02-08 at 15:45, Peter Verveer wrote:
> > 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

I looked at this some more after getting a clean checkout and discovered
that there's a problem in numarray-CVS (Python-2.2 only) introduced by a
recent bugfix.  I didn't see it because I don't normally test with 2.2.

It's fixed now in CVS,  modulo incomplete bool support for 2.2.

Regards,
Todd







More information about the Numpy-discussion mailing list