From: Christopher B. <Chr...@no...> - 2006-05-02 17:01:53
|
John Hunter wrote: > Sasha> Do we really need the putmask method? With fancy indexing > Sasha> the obvious way to do it is > > >>>> a[a>3] = 3 Duh! I totally forgot about that, despite the fact that that was the one thing I missed when moving form Matlab to Numeric a few years back. > I'm +1 for backwards compatibility with the Numeric API where the cost > of a fix isn't too painful. I agree, however, does Numeric have a putmask() method? or only a putmask function? The numpy putmask function works fine. Still, this looks like a bug that may well apply to other methods, so it's probably worth fixing. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |