Skip to content

Commit

Permalink
Propagate new slit keys to spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Mar 7, 2025
1 parent 56540a5 commit 1eb36ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jwst/extract_1d/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ def copy_keyword_info(slit, slitname, spec):
"quadrant",
"slit_xscale",
"slit_yscale",
"wavelength_corrected",
"pathloss_correction_type",
"barshadow_corrected",
]
for key in copy_populated_attributes:
if getattr(slit, key, None) is not None:
Expand Down
3 changes: 3 additions & 0 deletions jwst/extract_1d/tests/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ def test_copy_keyword_info(mock_nirspec_fs_one_slit, mock_one_spec):
"source_ra": 10.0,
"source_dec": 10.0,
"shutter_state": "x",
"wavelength_corrected": True,
"pathloss_correction_type": "POINT",
"barshadow_corrected": False
}
for key, value in expected.items():
setattr(mock_nirspec_fs_one_slit, key, value)
Expand Down

0 comments on commit 1eb36ef

Please sign in to comment.