[Numpy-discussion] dtype=float32 not recognised.
agn at noc.soton.ac.uk
agn at noc.soton.ac.uk
Tue Jan 24 14:33:07 CST 2006
A curious problem (0.9.5.1993):
n [12]: theta3 =numpy.zeros(66,dtype=float32)
---------------------------------------------------------------------------
exceptions.NameError Traceback (most recent call
last)
/working/jrd/mod2/agn/OCCAM/AGN_GLOBAL/<ipython console>
NameError: name 'float32' is not defined
But
n [14]: theta3 =numpy.zeros(66,dtype='f')
In [15]: theta3
Out[15]:
array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
dtype=float32)
George Nuresr
-----------------------------------------------------------------------
National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk
More information about the Numpy-discussion
mailing list