Hi Pierre, > Here's the catch: it's basically cheating. I got rid of the pre- > processing (where a mask was calculated depending on the domain and > the input set to a filling value depending on this mask, before the > actual computation). Instead, I force > np.seterr(divide='ignore',invalid='ignore') before calling the ufunc
This isn't a thread safe approach and could cause wierd side effects in a multi-threaded application. I think modifying global options/variables inside any function where it generally wouldn't be expected by the user is a bad idea. - Matt _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion