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

Bugfix: Fixing test_relative_value #899

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

Magnus167
Copy link
Member

@Magnus167 Magnus167 commented Jul 19, 2023

This makes a very small change -

Instead of checking :

np.all(arrayX == arrayY)

it checks

np.allclose(arrayX, arrayY)

The key difference is that the latter introduce an absolute and relative tolerance.
For most cases this should work exactly the same, except when looking at very minute changes (default r_tol = 1e-05, a_tol = 1e-08)

@rsueppel rsueppel self-requested a review July 19, 2023 17:08
@Magnus167 Magnus167 merged commit 666db5b into develop Jul 19, 2023
3 checks passed
@Magnus167 Magnus167 deleted the bugfix/relative_value_pandas_fix branch July 19, 2023 17:09
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.

None yet

2 participants