Nose plugin to set how floating-point errors are handled by numpy
This nose plugin set how floating-point errors are handled by numpy
Ever wondered why you get ‘Warning: divide by zero encountered in divide’ when running nosetest with numpy? Just run nosetest with --npe-all=raise option and you will see why.
See the document of numpy.seterr for the other valid arguments.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.