Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Floating point numbers should not be tested for equality #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Wuodan
Copy link
Contributor

@Wuodan Wuodan commented Aug 21, 2024

see SonarRule python:S1244 (https://rules.sonarsource.com/python/RSPEC-1244/)

Fixes #62

@pb4git
Copy link
Member

pb4git commented Aug 26, 2024

This is a partial fix, as np.min(quantiles_output) == np.max(quantiles_output) are also floating point numbers tested for equality on the same line.

@Wuodan Wuodan force-pushed the upstream/issue/62_Floating-point-numbers-should-not-be-tested-for-equality branch from 6722fab to 66104bd Compare August 30, 2024 13:38
@Wuodan
Copy link
Contributor Author

Wuodan commented Aug 30, 2024

Thank you. PR updated.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Floating point numbers should not be tested for equality
2 participants