Skip to content

fix(test): Do not compare floats directly#786

Open
FBruzzesi wants to merge 2 commits into
mainfrom
fix/test-approx
Open

fix(test): Do not compare floats directly#786
FBruzzesi wants to merge 2 commits into
mainfrom
fix/test-approx

Conversation

@FBruzzesi
Copy link
Copy Markdown
Collaborator

Description

Closes #785

I couldn't replicate it, but that's a very good point. We should not compare floats directly. This PR moves the comparisons to np.allclose

Copy link
Copy Markdown
Owner

@koaning koaning left a comment

Choose a reason for hiding this comment

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

Just one oddity, agree with the fix.

Comment thread .pre-commit-config.yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
rev: v0.15.11
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why was the ruff version incremented?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I sporadically run pre-commit autoupdate 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_custom_shrinkage fails on the clean main due to strict float equality

2 participants