RuntimeWarning: invalid value encountered in double_scalars – without numpy
The error is simply used to indicate a division where the denominator is of 0 value, e.g. your data somehow contains incorrect values, for example you try to take the square root of negative numbers, or 1/a where a (which is an array) contains zeroes. I am not able to reproduce the same error from the code … Read more