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

Jump modifies input data by gain multiplier (JP-2696). #116

Merged
merged 2 commits into from
Aug 19, 2022

Conversation

dmggh
Copy link
Contributor

@dmggh dmggh commented Aug 18, 2022

Resolves JP-2696

Closes spacetelescope/jwst#6944

This PR addresses spacetelescope/jwst#6944 - "Jump detection modifies input data by gain multiplier". In this step the data in the input object is multiplied by the gain (converting from DN to electrons) within the algorithm. This PR reconverts that data back to DN at the end of the step. This solves the user's problem of not being able to test multiple jump detection parameters using the same input.

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)

@dmggh dmggh added bug Something isn't working jump labels Aug 18, 2022
@dmggh dmggh self-assigned this Aug 18, 2022
@codecov
Copy link

codecov bot commented Aug 18, 2022

Codecov Report

Merging #116 (2560a29) into main (000c09e) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
- Coverage   72.44%   72.35%   -0.09%     
==========================================
  Files          16       16              
  Lines        2533     2536       +3     
==========================================
  Hits         1835     1835              
- Misses        698      701       +3     
Impacted Files Coverage Δ
src/stcal/jump/jump.py 11.84% <0.00%> (-0.49%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@PaulHuwe PaulHuwe left a comment

Choose a reason for hiding this comment

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

LGTM - Passes ROmanCAL Unit & Regression tests.

Copy link
Collaborator

@ddavis-stsci ddavis-stsci left a comment

Choose a reason for hiding this comment

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

@hbushouse hbushouse added this to the 1.1.1 milestone Aug 19, 2022
@hbushouse hbushouse merged commit bf581a7 into spacetelescope:main Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jump detection modifies input data by gain multiplier
4 participants