[Numpy-discussion] Stop program when getting a warning (invalid value encountered in sqrt)