Skip to content

Commit

Permalink
Check for subtractSky() timestamp keyword in extractSpectra()
Browse files Browse the repository at this point in the history
  • Loading branch information
DBerke committed Nov 2, 2023
1 parent 91f69e1 commit 662a9da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geminidr/core/primitives_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2292,7 +2292,8 @@ def extractSpectra(self, adinputs=None, **params):
ad_spec.filename = ad.filename
ad_spec.orig_filename = ad.orig_filename
skysub_needed = (subtract_sky and
self.timestamp_keys['skyCorrectFromSlit'] not in ad.phu)
(self.timestamp_keys['subtractSky'] not in ad.phu and
self.timestamp_keys['skyCorrectFromSlit'] not in ad.phu))
if skysub_needed:
log.stdinfo(f"Sky subtraction has not been performed on {ad.filename}"
" - extracting sky from separate apertures")
Expand Down

0 comments on commit 662a9da

Please sign in to comment.