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

Set DQ of ref pixels to DO_NOT_USE after refpix correction #7017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdavies-st
Copy link
Collaborator

@jdavies-st jdavies-st commented Sep 2, 2022

Closes #7015

This PR addresses the current fragility of how reference pixels are set to DO_NOT_USE in calwebb_detector1. Currently they rely on the GAIN reference file having zeros in the reference pixel locations, and then ramp_fitting sets those pixels to DO_NOT_USE in the science data DQ.

This PR sets the DQ of reference pixels to DO_NOT_USE at the end of the refpix step. It does require that DQInitStep label these properly as REFERENCE_PIXELS, but this seems to be the case currently for the currently selected MASK reference files for all instruments.

Is this the best way to do this? Thoughts?

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

@codecov
Copy link

codecov bot commented Sep 2, 2022

Codecov Report

Base: 78.60% // Head: 78.71% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (21fd546) compared to base (e2284d1).
Patch coverage: 94.73% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7017      +/-   ##
==========================================
+ Coverage   78.60%   78.71%   +0.11%     
==========================================
  Files         455      455              
  Lines       39148    39431     +283     
==========================================
+ Hits        30771    31039     +268     
- Misses       8377     8392      +15     
Flag Coverage Δ *Carryforward flag
nightly 78.59% <92.85%> (ø) Carriedforward from e2284d1
unit 51.41% <85.71%> (+<0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
jwst/refpix/reference_pixels.py 93.36% <94.73%> (+0.54%) ⬆️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nden nden requested a review from hbushouse June 26, 2023 21:19
@jdavies-st jdavies-st requested a review from a team as a code owner March 28, 2024 13:52
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.

Reference pixels set to DO_NOT_USE in DQ is fragile
1 participant