I was getting this "invalid value encountered in scalar divide" warning with any input data I used. I searched for a fix but no amount of data-transformations worked, then I saw many users reporting the same issue in the exact same line dip[idx] = 100 * (self._dip[idx] / value), so I wrote a simple fix for it. In short, I added checks to make sure we never divide by 0.
I was getting this "invalid value encountered in scalar divide" warning with any input data I used. I searched for a fix but no amount of data-transformations worked, then I saw many users reporting the same issue in the exact same line
dip[idx] = 100 * (self._dip[idx] / value)
, so I wrote a simple fix for it. In short, I added checks to make sure we never divide by 0.