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

Update trending plot to subtract piston before displaying proposed correction #756

Conversation

mperrin
Copy link
Collaborator

@mperrin mperrin commented Oct 16, 2023

The WSS doesn't subtract piston from the proposed correction that it writes out in the OPD files. (The MCS does subsequently remove global piston before generating SURs).

This PR changes the display code in single_measurement_trending_plot so it subtracts the piston before displaying the proposed correction. This also affects the computed RMS WFE values, removing a bias that was making those appear higher. (related to the subtle distinction between the RMS and the std dev, which the WSS code handles differently in various cases).

Before and after plots. Only change is in the marked panel in the bottom row:

Before (with current code):

Unknown

After this PR (with proposed modified code)

Unknown-1

@mperrin mperrin added the JWST Affects JWST models in WebbPSF label Oct 16, 2023
@mperrin mperrin requested a review from obi-wan76 October 16, 2023 16:23
@mperrin mperrin self-assigned this Oct 16, 2023
Copy link
Collaborator

@obi-wan76 obi-wan76 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 and very useful to help visualized these last set of correction. Sometimes we subtract the piston manually from the correction.
image

@obi-wan76
Copy link
Collaborator

@BradleySappington can you check this merge? Thanks!

@BradleySappington
Copy link
Collaborator

@mperrin - please rebase to get the CI legacy test fix

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
webbpsf/trending.py 4.43% <0.00%> (-0.01%) ⬇️

... and 2 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@BradleySappington
Copy link
Collaborator

@obi-wan76 @mperrin, mentioned a few weeks back (although cycle deadline was in full force when I mentioned it!). Please re-base to get the CI legacy fix :)

@mperrin mperrin force-pushed the trending_plot_improve_correction_display branch from 867d3b7 to e3eea15 Compare November 6, 2023 18:23
@BradleySappington BradleySappington merged commit f952eae into spacetelescope:develop Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JWST Affects JWST models in WebbPSF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants