Skip to content

Commit

Permalink
Add timestamp/filename updating to tracePinholeApertures()
Browse files Browse the repository at this point in the history
  • Loading branch information
DBerke committed Apr 4, 2024
1 parent 84f6cbe commit e488fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geminidr/core/primitives_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -4645,7 +4645,7 @@ def tracePinholeApertures(self, adinputs=None, **params):
log = self.log
log.debug(gt.log_message("primitive", self.myself(), "starting"))
timestamp_key = self.timestamp_keys[self.myself()]
suffix = params['suffix']
sfx = params['suffix']
step = params['step']
max_missed = params['max_missed']
max_shift = params['max_shift']
Expand Down Expand Up @@ -4739,6 +4739,9 @@ def tracePinholeApertures(self, adinputs=None, **params):
ext.wcs.insert_frame(ext.wcs.input_frame, model,
cf.Frame2D(name='rectified'))

# Timestamp and update the filename
gt.mark_history(ad, primname=self.myself(), keyword=timestamp_key)
ad.update_filename(suffix=sfx, strip=True)
return adinputs

def write1DSpectra(self, adinputs=None, **params):
Expand Down

0 comments on commit e488fc7

Please sign in to comment.