[Numpy-discussion] Returning ndimage subclass instances from scipy methods?
Thu Aug 11 07:59:57 CDT 2011
Does anyone know if it is possible to have SciPy methods which work
on/return ndarray instances return subclass instances instead?
For example, I can pass in an instance of a ndarray subclass to methods in
scipy.ndimage, but a normal ndarray is returned instead of a new subclass
instance. Wrapping the result in __array_wrap__ and __array_finalize__ has
not seemed to help. I also tried asking on the scipy-users
but so far have not gotten any response.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion