[Numpy-discussion] my derived ndarray class object loses its attribute after a transpose()
Stefan van der Walt
stefan at sun.ac.za
Fri Nov 23 10:05:54 EST 2007
On Fri, Nov 23, 2007 at 09:25:37AM +0100, Sebastian Haase wrote:
> 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
Show us the code, then we can take a look. I assume you have read
More information about the NumPy-Discussion