[Numpy-discussion] np.seterr doesn't work for masked array?

Robert Kern robert.kern@gmail....
Fri Dec 14 08:42:36 CST 2012


On Fri, Dec 14, 2012 at 2:40 PM, Chao YUE <chaoyuejoy@gmail.com> wrote:
> Thanks. You mean actually when numpy handle masked array, it will first
> treat all the base data, and then apply the mask after the treatment.
> and normally the base data of maksed elements will very likely to intrigure
> these errors, and you will see a lot errory warning or print in the process,
> and will make it impossible to see the error information your want to see
> for those elements that are not masked but still can intriguer the error you
> would like to see or check. I didn't realize this. It's a good to overwrite
> the error setting.

Precisely.

--
Robert Kern


More information about the NumPy-Discussion mailing list