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

Change float comparison in tests #248

Merged
merged 3 commits into from
Aug 9, 2022
Merged

Change float comparison in tests #248

merged 3 commits into from
Aug 9, 2022

Conversation

LSchueler
Copy link
Member

Some tests are failing in PR #247 due to very small discrepancies (~10e-16) in floating point comparisons. An approximate comparison is the better test.

According to the PR
scipy/scipy#13831
Both methods pinv and pinv2 have been using the same algorithms for a
long time. Thus, I simply deleted the option pinv2.
@LSchueler LSchueler requested a review from MuellerSeb August 4, 2022 13:41
@LSchueler LSchueler self-assigned this Aug 4, 2022
@LSchueler LSchueler added bug Something isn't working CI/CD labels Aug 4, 2022
Copy link
Member

@MuellerSeb MuellerSeb left a comment

Choose a reason for hiding this comment

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

LGTM

@MuellerSeb MuellerSeb added this to the v1.4 milestone Aug 9, 2022
@MuellerSeb MuellerSeb merged commit dda2431 into main Aug 9, 2022
@MuellerSeb MuellerSeb deleted the float-comparison branch August 9, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants