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

replaced all the array_equal with all_close to avoid numerical precision issues #67

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

SimoneMartino98
Copy link
Contributor

Hi @andrewtarzia and @matteobecchi;

This PR aims to avoid issues with numerical precision when comparing expected and tested arrays in tests.

I have replaced all the instances of assert np.array_equal(...) to assert np.allclose(...)

@matteobecchi
Copy link
Contributor

You have my approval

@andrewtarzia andrewtarzia merged commit 06d0766 into GMPavanLab:main Feb 18, 2025
11 checks passed
@SimoneMartino98 SimoneMartino98 deleted the num_precision branch February 18, 2025 15:21
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.

3 participants