8000 JP-1636: Fix slit wcs issue in extract_1d apcorr by hbushouse · Pull Request #5260 · spacetelescope/jwst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JP-1636: Fix slit wcs issue in extract_1d apcorr #5260

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

Merged
merged 2 commits into from
Aug 20, 2020

Conversation

hbushouse
Copy link
Collaborator

extract_1d was failing when trying to process NIRSpec FS or MOS data in a MultiSlitModel when trying to compute the pixel scale (converting arcsec from ref file to pixels), because it was trying to use the WCS from the first slit instance in the model for all slits. This was giving null/NaN results for all slits other than the first. So this updates the routine to use the WCS object for the particular slit being processed. Required adding the slit name to the ApCorr base class, so that it's available for use.

Fixes #5229 / JP-1636

@codecov
Copy link
codecov bot commented Aug 19, 2020

Codecov Report

Merging #5260 into master will decrease coverage by 0.00%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5260      +/-   ##
==========================================
- Coverage   52.41%   52.41%   -0.01%     
==========================================
  Files         406      406              
  Lines       36411    36415       +4     
  Branches     5636     5638       +2     
==========================================
+ Hits        19086    19087       +1     
- Misses      16146    16149       +3     
  Partials     1179     1179              
Flag Coverage Δ
#unit 52.41% <20.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jwst/extract_1d/extract.py 9.19% <0.00%> (-0.02%) ⬇️
jwst/extract_1d/apply_apcorr.py 75.21% <50.00%> (-0.44%) ⬇️
jwst/datamodels/container.py 69.51% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3097c05...938aa29. Read the comment docs.

@hbushouse hbushouse requested review from nden and jemorrison August 19, 2020 18:48
@hbushouse hbushouse merged commit bb32e7a into spacetelescope:master Aug 20, 2020
@hbushouse hbushouse deleted the jp-1636 branch August 20, 2020 00:08
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.

extract_1d bug for NIRSpec FS data
3 participants
0