Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

switch a test case float comparison to np.allclose for robustness #934

Merged

Conversation

mperrin
Copy link
Collaborator

@mperrin mperrin commented Nov 22, 2024

Minor test case fix. Found a case where it was doing a precise == comparison on two floats, which led to intermittent sometimes-failing and sometimes-working due to floating point precision issues. I switched it to use np.isclose() which will apply appropriate tolerances for a floating point comparison.

Copy link
Collaborator

@BradleySappington BradleySappington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@BradleySappington BradleySappington merged commit 540a751 into spacetelescope:develop Nov 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants