[Numpy-discussion] my derived ndarray class object loses its attribute after a transpose()
haase at msg.ucsf.edu
Fri Nov 23 03:25:37 EST 2007
this question might habe been answered before:
I have my own ndarray-derived class. I did this, so that I can add
another "custom attribute" -- let's say
All works very except, except when I do
arr2 = arr.transpose()
my arr2 is still of the *type* of my derived class, however trying a
now gives me an AtttributeError.
What am I doing wrong? How can this be fixed?
(I'm using numpy 1.0.1 - please let me know if this has been fixed since)
More information about the NumPy-Discussion