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-3448: Always flag at least one group when showers are detected #237

Merged
merged 42 commits into from
Feb 7, 2024

Conversation

mwregan2
Copy link
Collaborator

@mwregan2 mwregan2 commented Dec 28, 2023

Resolves JP-3448

Closes spacetelescope/jwst#8030

This PR addresses the problem that the shower flagging is not including the flagging of the primary shower as a minimum. The code was updated to match the input parameter which is the time to flag groups after the primary shower. The current default values and code lead to no flagging in MIRI slow mode.

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)

@mwregan2 mwregan2 requested a review from a team as a code owner December 28, 2023 19:26
Copy link

codecov bot commented Dec 28, 2023

Codecov Report

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

Comparison is base (dfa9a50) 85.94% compared to head (a62076e) 85.98%.

Files Patch % Lines
src/stcal/jump/jump.py 90.90% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #237      +/-   ##
==========================================
+ Coverage   85.94%   85.98%   +0.04%     
==========================================
  Files          35       35              
  Lines        6523     6542      +19     
==========================================
+ Hits         5606     5625      +19     
  Misses        917      917              

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

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

mwregan2 commented Jan 4, 2024 via email

@hbushouse hbushouse changed the title Always_flag_at_least_one_shower_grp JP-3448: Always flag at least one group when showers are detected Jan 25, 2024
mwregan2 and others added 4 commits January 26, 2024 15:30
based on suggestion

Co-authored-by: Howard Bushouse <[email protected]>
uses suggestion

Co-authored-by: Howard Bushouse <[email protected]>
addressed comments in PR
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
src/stcal/jump/jump.py Outdated Show resolved Hide resolved
tests/test_jump.py Outdated Show resolved Hide resolved
@hbushouse
Copy link
Collaborator

I tried fixing obvious errors (like mismatching argument names) to get this PR to pass CI tests, but it's still failing CI's with both differences in unit test results and a real error "UnboundLocalError: cannot access local variable 'total_showers' where it is not associated with a value". So something still needs fixing in the basic code.

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.

Looks good now and all CI tests are passing.

@hbushouse hbushouse merged commit fd2d6ce into spacetelescope:main Feb 7, 2024
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 CR showers not flagged for SLOWR1 data
3 participants