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

JP-3562: Shower flagging enhancement #248

Merged
merged 75 commits into from
Mar 21, 2024

Conversation

mwregan2
Copy link
Collaborator

@mwregan2 mwregan2 commented Mar 6, 2024

Resolves JP-3562

Closes spacetelescope/jwst#8333

This PR addresses several effects that lead to inaccurate flagging of showers. These change improve the estimate of the median difference by using all the integrations. It also masks reference pixels to avoid them being used in the convolution used to detect faint emission.

Checklist

  • added entry in CHANGES.rst (either in Bug Fixes or Changes to API)
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 81.65138% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 84.95%. Comparing base (af5aefb) to head (b87ba51).
Report is 1 commits behind head on main.

Files Patch % Lines
tests/test_jump.py 65.85% 14 Missing ⚠️
src/stcal/jump/jump.py 91.17% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
- Coverage   85.18%   84.95%   -0.23%     
==========================================
  Files          35       35              
  Lines        6797     6846      +49     
==========================================
+ Hits         5790     5816      +26     
- Misses       1007     1030      +23     

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

@hbushouse
Copy link
Collaborator

@mwregan2 The description above refers to JP-3560, but that Jira ticket concerns updates to the charge_migration step. Is there another JP ticket that this should refer to?

Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

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

Needs a change log entry, in addition to specific code comments/questions.

src/stcal/jump/jump.py Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
@mwregan2
Copy link
Collaborator Author

mwregan2 commented Mar 15, 2024 via email

@hbushouse hbushouse changed the title Shower flagging enhancement JP-3562: Shower flagging enhancement Mar 15, 2024
src/stcal/jump/jump.py Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
@mwregan2
Copy link
Collaborator Author

I think I've addressed all the comments.

@hbushouse
Copy link
Collaborator

@mwregan2 Several unit tests are failing in the CI test suite. They need fixing.

Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

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

CI tests are all passing now. Code updates look OK to me.

@hbushouse hbushouse merged commit 95f1643 into spacetelescope:main Mar 21, 2024
23 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MIRI Shower Improvements
4 participants