HarmonicPatterns icon indicating copy to clipboard operation
HarmonicPatterns copied to clipboard

Division by zero warnings

Open cunhasdepedra opened this issue 1 year ago • 2 comments

@djoffrey Hey, I'm also getting this:

:823: RuntimeWarning: invalid value encountered in double_scalars XAD = abs(A-D) / abs(X-A) :946: RuntimeWarning: invalid value encountered in double_scalars XAD = abs(A-D) / abs(X-A) :1055: RuntimeWarning: invalid value encountered in double_scalars XAD = abs(A-D) / abs(X-A) :1177: RuntimeWarning: invalid value encountered in double_scalars XAD = abs(A-D) / abs(X-A) :123: RuntimeWarning: invalid value encountered in double_scalars XAD = abs(A-D) / abs(X-A) :1180: RuntimeWarning: invalid value encountered in double_scalars XCD = abs(D-C) / abs(X-C)

From what I was able to check, it's not compromising my patterns validation. But I would like to hear from you too.

cunhasdepedra avatar Apr 18 '23 11:04 cunhasdepedra

Let me be more precise: those warnings compromise the calculations that lead to the patterns formation? So I might be getting wrong patterns?

cunhasdepedra avatar Apr 18 '23 13:04 cunhasdepedra

I can't not 100% sure, but if the X-C near 0, the float part may be importance, but that wont fit in the patterns. if you need the ensure the accuracy, do some type convert to avoid this msg.

djoffrey avatar Apr 18 '23 16:04 djoffrey