[Numpy-discussion] Issue with dtype and nx1 arrays
Thomas Robitaille
thomas.robitaille@gmail....
Tue Aug 30 22:34:52 CDT 2011
Hello,
Is the following behavior normal?
In [1]: import numpy as np
In [2]: np.dtype([('a','<f4',2)])
Out[2]: dtype([('a', '<f4', (2,))])
In [3]: np.dtype([('a','<f4',1)])
Out[3]: dtype([('a', '<f4')])
I.e. in the second case, the second dimension of the dtype (1) is
being ignored? Is there a way to avoid this?
Thanks,
Thomas
More information about the NumPy-Discussion
mailing list