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

add trending plot function "show_wfs_around_obs" #705

Merged

Conversation

mperrin
Copy link
Collaborator

@mperrin mperrin commented Aug 1, 2023

Simple PR, adds one function "show_wfs_around_obs" that displays the WFS before and after a given science observation, and the spacing in time between those observations.

Low priority addition, not critical, but I wrote this function a while ago and wanted to get it into a PR.

example_output_plot

@mperrin mperrin requested a review from obi-wan76 August 1, 2023 20:47
@mperrin mperrin added this to the Release 1.2 milestone Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 1.63% and project coverage change: -0.53% ⚠️

Comparison is base (081584d) 55.94% compared to head (7902170) 55.42%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #705      +/-   ##
===========================================
- Coverage    55.94%   55.42%   -0.53%     
===========================================
  Files           15       15              
  Lines         6281     6342      +61     
===========================================
+ Hits          3514     3515       +1     
- Misses        2767     2827      +60     
Files Changed Coverage Δ
webbpsf/trending.py 4.58% <1.63%> (-0.26%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@obi-wan76
Copy link
Collaborator

Great addition. Again a test with a NIRCam LW. Everything looks good.
image

@obi-wan76
Copy link
Collaborator

Looking at your example, why is the WFE the same before/after if there was a big tilt event in between? The top panel is the WFE, right?

@mperrin
Copy link
Collaborator Author

mperrin commented Aug 2, 2023

Top panel actually just a horizontal timeline; there is no significance to any vertical axis there. Just separation in time horizontally. It could be changed to be an RMS, in some future PR, but I made this top panel just showing time on one axis and nothing else.

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.

@obi-wan76 obi-wan76 merged commit bc9fa6c into spacetelescope:develop Aug 2, 2023
6 of 8 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