This post has NOT been accepted by the mailing list yet.
I've come across something very odd using NumPy. In the following lines I
use numpy.ndarray.T, but it seems it doesn't change the structure of the
data only the way they're displayed. Which was a problem for what I wanted
to do (I changed my approach since and was able to do what I wanted:
sorting the 2-D array a certain way). But still I found it very curious
since the shape, the type and dtype of both arrays are the same. Does anyone
have any idea what's happening?
>>> import numpy as np
>>> print x
>>> print y
dtype=[('f0', '<i8'), ('f1', '<i8')])
Traceback (most recent call last):
File "<stdin>", line 1, in <module> ValueError: new type not compatible with array.
PS: an x.view("i8,i8,i8") works and y.view("i8,i8,i8") doesn't .