Skip to content

Commit

Permalink
Merge pull request #1797 from pypeit/fix_parfluxcalib
Browse files Browse the repository at this point in the history
Hot-Fix par_fluxcalib (Issue #1791)
  • Loading branch information
debora-pe authored Apr 12, 2024
2 parents d5fd1db + 51dda66 commit dbf2a60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/releases/1.15.1dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ Bug Fixes
directly a sky spectrum. This fixes a bug in the flexure correction for SlicerIFU.
- The `--show` option of the `pypeit_coadd_1dspec` script was not properly displaying the
x-axis of the plot. Both the top and bottom panels now scale together.
- Fix a bug in `pypeit_sensfunc` that was causing the script to crash because `par['fluxcalib']`
was not being passed to `sensfunc.SensFunc.get_instance()`.
4 changes: 2 additions & 2 deletions pypeit/scripts/sensfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def main(args):
par = pypeitpar.PypeItPar.from_cfg_lines(cfg_lines=spectrograph_config_par.to_config(),
merge_with=(sensFile.cfg_lines,))
else:
par = spectrograph_config_par
par = pypeitpar.PypeItPar.from_cfg_lines(cfg_lines=spectrograph_config_par.to_config())

# If algorithm was provided override defaults. Note this does undo .sens
# file since they cannot both be passed
Expand Down Expand Up @@ -179,7 +179,7 @@ def main(args):
if args.outfile is None else args.outfile
# Instantiate the relevant class for the requested algorithm
sensobj = sensfunc.SensFunc.get_instance(args.spec1dfile, outfile, par['sensfunc'],
debug=args.debug,
par_fluxcalib=par['fluxcalib'], debug=args.debug,
chk_version=par['rdx']['chk_version'])
# Generate the sensfunc
sensobj.run()
Expand Down

0 comments on commit dbf2a60

Please sign in to comment.