Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Division by zero warnings #9

Open
cunhasdepedra opened this issue Apr 18, 2023 · 2 comments
Open

Division by zero warnings #9

cunhasdepedra opened this issue Apr 18, 2023 · 2 comments

Comments

@cunhasdepedra
Copy link

@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
Copy link
Author

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

@djoffrey
Copy link
Owner

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 djoffrey reopened this Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants