From: Travis O. <oli...@ie...> - 2006-08-10 20:22:26
|
Sasha wrote: > I see that Travis just fixed that by making context optional > <http://projects.scipy.org/scipy/numpy/changeset/2987>. I am not sure > it is a good idea to allow use of ufuncs for which domain is not > defined in ma. This may lead to hard to find bugs coming from ma > arrays with nans in the data. I would rather see linalg passing the > (func,args) context to wrap. That would not fix the reported problem, > but will make diagnostic clearer. > > This can be done as well. The problem is that __array_wrap__ is used in quite a few places (without context) and ma needs to have a default behavior when context is not supplied. -Travis |