Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jwst/lib/exposure_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
`True` if it is.
"""
lamp_mode = datamodel.meta.instrument.lamp_mode.lower()
return lamp_mode == "msaspec" and is_nrs_flatlamp()
return lamp_mode == "msaspec" and is_nrs_flatlamp(datamodel)

Check warning on line 224 in jwst/lib/exposure_types.py

View check run for this annotation

Codecov / codecov/patch

jwst/lib/exposure_types.py#L224

Added line #L224 was not covered by tests


def is_nrs_autoflat(datamodel):
Expand Down
8 changes: 2 additions & 6 deletions jwst/lib/set_telescope_pointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2962,12 +2962,8 @@ def gs_position_acq(mnemonics_to_read, mnemonics, exp_type="fgs_acq1"): # noqa:
)

# Setup parameters depending on ACQ1 vs ACQ2
if exp_type == "fgs_acq1":
subarray = valid[FGS_ACQ_WINDOW_INDEX[exp_type]]
posg_slice = FGS_ACQ_SLICES[exp_type]
else:
subarray = valid[FGS_ACQ_WINDOW_INDEX[exp_type]]
posg_slice = FGS_ACQ_SLICES[exp_type]
subarray = valid[FGS_ACQ_WINDOW_INDEX[exp_type]]
posg_slice = FGS_ACQ_SLICES[exp_type]

position = (
np.average(valid["IFGS_ACQ_XPOSG"][posg_slice]),
Expand Down