I have a numpy script sitting on an app server, it gets called thousands of times and once in a blue moon I get a Runtime Warning:
/usr/local/lib/python2.7/dist-packages/scipy/stats/stats.py:2417: RuntimeWarning: invalid value encountered in double_scalars
r = (r_num / r_den)
- Not sure where this occurs.
- Why this occurs.
- The consequence it has on the code if any. everything passes the eye test and unit test.
But again I'm not sure if I'm looking at the right place because the chance of this warrning happening is less than 1%
how can I get python to print out the location of the warning?