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

DM-34768: Loosen fgcmcal chebyshev test tolerance #83

Merged
merged 1 commit into from May 13, 2022
Merged

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented May 13, 2022

No description provided.

Copy link

@beckermr beckermr left a comment

Choose a reason for hiding this comment

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

LGTM! thank you!

@@ -97,7 +97,7 @@ def test_chebyshev_evaluate(self, seed=1000):
field = afwMath.ChebyshevBoundedField(bbox, self.pars)
fieldValues = field.evaluate(xPos, yPos)

self.assertFloatsAlmostEqual(fieldValues, fgcmValues, rtol=5e-15)
self.assertFloatsAlmostEqual(fieldValues, fgcmValues, rtol=1e-14)
Copy link
Member

Choose a reason for hiding this comment

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

Is three uses enough for this to be a file constant?

Choose a reason for hiding this comment

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

They only need to be the same if we think a change in one tolerance should be reflected in the others. The number of uses is irrelevant in and of itself if the reused constant merely happens to be the same.

@erykoff erykoff merged commit 25d357f into main May 13, 2022
@erykoff erykoff deleted the tickets/DM-34798 branch May 13, 2022 18: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.

None yet

3 participants