[Numpy-discussion] what happened to numarray type names ? (original) (raw)
Erin Sheldon erin.sheldon at gmail.com
Tue Jun 20 21:00:52 EDT 2006
- Previous message (by thread): [Numpy-discussion] what happened to numarray type names ?
- Next message (by thread): [Numpy-discussion] what happened to numarray type names ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The numpy example page still has dtype=Float and dtype=Int all over it. Is there a generic replacement for Float, Int or should these be changed to something more specific such as int32? Erin
On 6/20/06, Stefan van der Walt <stefan at sun.ac.za> wrote:
Hi Simon
On Tue, Jun 20, 2006 at 08:22:30PM +0100, Simon Burton wrote: > > >>> import numpy > >>> numpy.version > '0.9.9.2631' > >>> numpy.Int32 > Traceback (most recent call last): > File "", 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 correctly, doing 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 friends. Cheers Stéfan
Numpy-discussion mailing list Numpy-discussion at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
- Previous message (by thread): [Numpy-discussion] what happened to numarray type names ?
- Next message (by thread): [Numpy-discussion] what happened to numarray type names ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]