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-3499: Handle too much masked data for NIRISS SOSS extractions in extract_1d #8265

Merged
merged 9 commits into from
Feb 15, 2024

Conversation

emolter
Copy link
Collaborator

@emolter emolter commented Feb 7, 2024

Resolves JP-3499

Closes #8166

This PR addresses a bug that would cause a cryptic ValueError traceback inside the SOSS ATOCA 1-d spectrum extraction for only a few specific integrations out of many on a given target. Bug occurs when the jump step flags the majority of the detector in that integration, such that no valid data exist in the order 2 region. The PR checks for too little overlap between order 2 wavelength space and valid data, and if this is the case, sets all flux values in order 2 to NaN.

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

Jenkins run links full run here ; fixed deploy truthfile, no code changes. soss tests only

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

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

Comparison is base (8f723b7) 75.20% compared to head (b16a4f5) 75.15%.

Files Patch % Lines
jwst/extract_1d/soss_extract/soss_extract.py 10.00% 18 Missing ⚠️
jwst/extract_1d/soss_extract/atoca.py 20.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8265      +/-   ##
==========================================
- Coverage   75.20%   75.15%   -0.06%     
==========================================
  Files         470      470              
  Lines       38578    38604      +26     
==========================================
  Hits        29013    29013              
- Misses       9565     9591      +26     
Flag Coverage Δ *Carryforward flag
nightly 77.38% <ø> (-0.01%) ⬇️ Carriedforward from 6d22bab

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

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

@hbushouse hbushouse changed the title JP-3499: handle too much masked data in order 2 for soss atoca extrac… JP-3499: Handle too much masked data for NIRISS SOSS extractions in extract_1d Feb 8, 2024
@hbushouse hbushouse added this to the Build 10.2 milestone Feb 8, 2024
@emolter emolter marked this pull request as ready for review February 9, 2024 15:14
@emolter emolter requested a review from a team as a code owner February 9, 2024 15:14
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.

LGTM

@hbushouse hbushouse merged commit f9ee282 into spacetelescope:master Feb 15, 2024
28 of 29 checks passed
@emolter emolter deleted the JP-3499 branch February 19, 2024 16:38
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.

nis_soss spec2 error for "zero-size array to reduction operation maximum which has no identity"
5 participants