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

Fix combine zernike sigma clipping #223

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Fix combine zernike sigma clipping #223

merged 1 commit into from
Mar 26, 2024

Conversation

gmegh
Copy link
Collaborator

@gmegh gmegh commented Mar 18, 2024

No description provided.

@gmegh gmegh requested a review from jbkalmbach March 18, 2024 06:36
@gmegh gmegh force-pushed the tickets/DM-42984 branch from c86b003 to 084baaf Compare March 18, 2024 08:38
Copy link
Member

@jbkalmbach jbkalmbach left a comment

Choose a reason for hiding this comment

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

Looks good, a couple small comments.

stdMin = pexConfig.Field(
dtype=float,
default=0.005,
doc="Minimum threshold for clipping the standard deviation.",
Copy link
Member

Choose a reason for hiding this comment

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

Specify units.

@@ -59,10 +61,19 @@ def testCombineZernikes(self):
np.testing.assert_array_equal(trueFlags, testFlags)
self.assertTrue(isinstance(testFlags[0], numbers.Integral))

# Test that the conditional sigma clipping works
combinedZernikes, testFlags = self.task.combineZernikes(zernikeArray * 1e-3)
self.assertTrue(np.allclose(np.ones(10) * 2e-3, combinedZernikes, atol=1e-3))
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be more precise to see if this is actually working. This will pass if zernikeArray[100] is included or not.

@jbkalmbach
Copy link
Member

Looks good to merge!

@gmegh gmegh force-pushed the tickets/DM-42984 branch from e8cd9ff to d747c4c Compare March 26, 2024 01:06
@gmegh gmegh force-pushed the tickets/DM-42984 branch from d747c4c to e5330da Compare March 26, 2024 01:08
@gmegh gmegh merged commit cad0004 into develop Mar 26, 2024
4 checks passed
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