[Numpy-discussion] what happened to numarray type names ?
Stefan van der Walt
stefan at sun.ac.za
Tue Jun 20 05:38:15 CDT 2006
On Tue, Jun 20, 2006 at 08:22:30PM +0100, Simon Burton wrote:
> >>> import numpy
> >>> numpy.__version__
> >>> numpy.Int32
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'Int32'
> This was working not so long ago.
Int32, Float etc. are part of the old Numeric interface, that you can
now access under the numpy.oldnumeric namespace. If I understand
import numpy.oldnumeric as Numeric
should provide you with a Numeric-compatible replacement.
The same types can be accessed under numpy as int32 (lower case) and
More information about the Numpy-discussion