Skip to content

Conversation

@jfcrenshaw
Copy link
Contributor

Explain in this notebook

@jfcrenshaw jfcrenshaw requested a review from jbkalmbach April 28, 2025 08:48
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.

"""Correct the AOS residual for over-estimation.
This correction is empirically fit in
https://gist.github.com/jfcrenshaw/24056516cfa3ce0237e39507674a43e1
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to maybe move this to ts_aos_analysis?

Parameters
----------
zernikes : np.ndarray
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming when using sparse Zernikes you should fill in with 0s the unused indices? I think it would be good to mention that here.

# Finally check converting array of 1's returns the coefficients
coeffs = convertZernikesToPsfWidth(np.ones(19))
self.assertTrue(np.allclose(coeffs, getPsfGradPerZernike()))

Copy link
Member

Choose a reason for hiding this comment

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

I know it's trivial but for completeness can you add a convertAOSResid test?

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