← Back to team overview

python-quantities-developers team mailing list archive

Re: proper subclassing

 

This might also be useful to look at:
http://docs.scipy.org/doc/numpy/reference/arrays.classes.html

On Sun, Jan 18, 2009 at 7:36 PM, John Salvatier
<jsalvati@xxxxxxxxxxxxxxxx>wrote:

> On this note, perhaps we should ask somewhere whether anyone has extra
> information/tips on subclassing numpy. Maybe there is more hidden stuff
> about. I'm not really sure who to ask.
>
> On Sun, Jan 18, 2009 at 7:34 PM, John Salvatier <jsalvati@xxxxxxxxxxxxxxxx
> > wrote:
>
>> I noticed that proper subclassing of ndarray lets us do away with some of
>> the wrapped numpy functions (basically all the ones that were just copying
>> over the dimensionality). However, for some reason, round() does not seem to
>> work this way. I am confused as to why.
>>
>
>

Follow ups

References