Re: [Numpy-discussion] my derived ndarray class object loses its attribute after a transpose()

2007-11-24 Thread Pierre GM
> Is it correct to assume that N.ndarray does *not* do it's own > N.ndarray.__new__(**options) or so, that I would have to call ? > (In other words: If I derive from N.ndarray I do not need to do a > def __new__(**options): >N.ndarray.__new__(**options) > , right?) That'd work if ndarray.__ne

Re: [Numpy-discussion] my derived ndarray class object loses its attribute after a transpose()

2007-11-24 Thread Sebastian Haase
On Nov 23, 2007 5:18 PM, Pierre GM <[EMAIL PROTECTED]> wrote: > > > This seems to work without any problem now: > > class ndarray_inMrcFile(N.ndarray): > > def __array_finalize__(self,obj): > > self.Mrc = getattr(obj, 'Mrc', None) > > > > Comments? > > That shoul

[Numpy-discussion] Installation of Python/mpl/numpy/scipy/Ipython for students

2007-11-24 Thread mark
A question was posted a week or so ago on the scipy list about installing Python/mpl/numpy/scipy/Ipython by David Arnold (both Windows and Mac). He was interested in a simple install for students (and others that are less computer-savy). We had a little off-list correspondence, but thought to bring