Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Olesja Smirnova committed Oct 31, 2022
1 parent d3728e7 commit 27d9c8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions geminidr/f2/primitives_f2_longslit.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def addIllumMaskToDQ(self, adinputs=None, suffix=None, illum_mask=None):
cenwave = ad.central_wavelength(asNanometers=True)
dispersion = ad.dispersion(asNanometers=True)[0]
filter = ad.filter_name(pretty=True)
if filter in {"HK", "JK"}:
if filter in {"HK", "JH"}:
filter = ad.filter_name(keepID=True)
cenwave_offset = self._get_cenwave_offset(ad)
index = (ad.disperser(pretty=True), filter)
Expand All @@ -151,9 +151,9 @@ def addIllumMaskToDQ(self, adinputs=None, suffix=None, illum_mask=None):
ext.mask[:filter_cutoff_pix] |= DQ.unilluminated
ext.mask[filter_cuton_pix:] |= DQ.unilluminated
if filter_cutoff_pix > 0:
log.stdinfo(f"Masking columns 1 to {filter_cutoff_pix+1}")
log.stdinfo(f"Masking rows 1 to {filter_cutoff_pix+1}")
if filter_cuton_pix < (ad[0].shape[dispaxis] - 1):
log.stdinfo(f"Masking columns {filter_cuton_pix+1} to {(ad[0].shape[dispaxis])}")
log.stdinfo(f"Masking rows {filter_cuton_pix+1} to {(ad[0].shape[dispaxis])}")

# Timestamp and update filename
gt.mark_history(ad, primname=self.myself(), keyword=timestamp_key)
Expand Down
4 changes: 2 additions & 2 deletions geminidr/gnirs/primitives_gnirs_longslit.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def addIllumMaskToDQ(self, adinputs=None, suffix=None, illum_mask=None):
ext.mask[:filter_cutoff_pix] |= DQ.unilluminated
ext.mask[filter_cuton_pix:] |= DQ.unilluminated
if filter_cutoff_pix > 0:
log.stdinfo(f"Masking columns 1 to {filter_cutoff_pix+1}")
log.stdinfo(f"Masking rows 1 to {filter_cutoff_pix+1}")
if filter_cuton_pix < (ad[0].shape[dispaxis] - 1):
log.stdinfo(f"Masking columns {filter_cuton_pix+1} to {(ad[0].shape[dispaxis])}")
log.stdinfo(f"Masking rows {filter_cuton_pix+1} to {(ad[0].shape[dispaxis])}")

# Timestamp and update filename
gt.mark_history(ad, primname=self.myself(), keyword=timestamp_key)
Expand Down

0 comments on commit 27d9c8e

Please sign in to comment.