Skip to content

Commit

Permalink
Merge branch 'master' into fixsky
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Jan 11, 2024
2 parents 3d46c40 + cc8bf70 commit 99460d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/lvmdrp/core/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2270,14 +2270,14 @@ def splitRSS(self, parts, axis=0):
if len(self._wave.shape) == 2:
wave = self._wave[parts[i]]
else:
wave = self._wave[parts[i]]
wave = self._wave
else:
wave = None
if self._inst_fwhm is not None:
if len(self._inst_fwhm.shape) == 2:
inst_fwhm = self._inst_fwhm[parts[i]]
else:
inst_fwhm = self._inst_fwhm[parts[i]]
inst_fwhm = self._inst_fwhm
else:
inst_fwhm = None

Expand Down
3 changes: 2 additions & 1 deletion python/lvmdrp/functions/run_drp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,9 +1518,10 @@ def run_drp(mjd: Union[int, str, list], expnum: Union[int, str, list] = None,

# reduce the science data
if sci_cond:
kwargs = get_config_options('reduction_steps.quick_science_reduction')
for expnum in sci['expnum'].unique():
try:
quick_science_reduction(expnum, use_fiducial_master=True)
quick_science_reduction(expnum, use_fiducial_master=True, **kwargs)
except Exception as e:
log.exception(f'Failed to reduce science frame mjd {mjd} exposure {expnum}: {e}')
create_status_file(tileid, mjd, status='error')
Expand Down

0 comments on commit 99460d2

Please sign in to comment.