Skip to content

Commit

Permalink
more STACKARC keyword to timestamp_keywords and ensure keywords are i…
Browse files Browse the repository at this point in the history
…gnored in GHOST arc test
  • Loading branch information
chris-simpson committed Feb 14, 2024
1 parent ebbf11d commit 72e8a6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions geminidr/gemini/lookups/timestamp_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"skyCorrectNodAndShuffle": "SKYCORR",
"slitIllumCorrect": "SILLCORR",
"splitBundle": "SPLTBNDL",
"stackArcs": "STACKARC",
"stackFrames": "STACKFRM",
"stackSkyFrames": "STACKSKY",
"standardizeInstrumentHeaders": "SDZHDRSI",
Expand Down
2 changes: 1 addition & 1 deletion geminidr/ghost/primitives_ghost_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ def stackArcs(self, adinputs=None, **params):
"""
log = self.log
log.debug(gt.log_message("primitive", self.myself(), "starting"))
timestamp_key = "STCKARCS" # FIXME - Needs to go into timestamp_keywords
timestamp_key = self.timestamp_keys[self.myself()]

if params['skip']:
log.stdinfo('Skipping the specialized arc stacking step')
Expand Down
4 changes: 3 additions & 1 deletion geminidr/ghost/recipes/sq/tests/test_reduce_arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def test_reduce_arc(input_filename, caldict, arm, path_to_inputs, path_to_refs):
output_filename = p.streams['main'][0].filename
adout = astrodata.open(os.path.join("calibrations", "processed_arc", output_filename))
adref = astrodata.open(os.path.join(path_to_refs, output_filename))
assert ad_compare(adref, adout)
# Changed timestamp kw from STCKARCS -> STACKARC and don't have time to
# re-upload reference, so just add these to the "ignore" list
assert ad_compare(adref, adout, ignore_kw=['PROCARC', 'STACKARC', 'STCKARCS'])

# Need to evaluate WFIT
arm = GhostArm(arm=adout.arm(), mode=adout.res_mode())
Expand Down

0 comments on commit 72e8a6b

Please sign in to comment.