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

Added rings test functions #569

Closed
wants to merge 3 commits into from
Closed

Conversation

andrydella
Copy link
Contributor

Added tests for new functions related ro rings in geom/_ring.py

@avcopan avcopan self-requested a review September 5, 2024 19:55
@andrydella andrydella closed this Sep 5, 2024
@andrydella andrydella reopened this Sep 5, 2024
@andrydella andrydella closed this Sep 5, 2024
Copy link
Collaborator

@avcopan avcopan left a comment

Choose a reason for hiding this comment

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

Andrea, this looks good! Thank you for working on this! It looks like we just need two small changes:

  1. Either add back in the conftest.py file (see here) or define the data path like I do here. I had removed the conftest fixture because I wasn't sure how to use fixtures together with parametrized tests, so I didn't end up using it.

  2. It looks like you need to adjust the thresholds on your call to numpy.allclose. Specifically, I think you may need to set the atol to something like 1e-5 or 1e-6. See here for documenation.

@andrydella
Copy link
Contributor Author

Thanks Andreas for the suggestions! I implemented both of them and am currently testing. As soon as the tests pass I will reopen the pull request

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