Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Olesja Smirnova committed Nov 15, 2023
1 parent 1346574 commit 51d4923
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions geminidr/core/parameters_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ class determineWavelengthSolutionConfig(config.core_1Dfitting_config):
"80": "80%-ile",
"100": "Any",
"header": "header value"},
default="header")
default="header", optional=False)
resolution = config.RangeField("Resolution of the observation", int, None, min=10, max=100000,
optional=True)
combine_method = config.ChoiceField("Combine method to use in 1D spectrum extraction", str,
allowed={"mean": "mean",
"median": "median"},
default="mean")
default="mean", optional=False)
def setDefaults(self):
del self.function
del self.grow
Expand Down
1 change: 1 addition & 0 deletions geminidr/f2/recipes/sq/recipes_LS_SPECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def makeWavecalFromSkyEmission(p):
p.addVAR(poisson_noise=True)
p.darkCorrect()
p.flatCorrect()
p.stackFrames()
p.makeIRAFCompatible()
p.determineWavelengthSolution()
p.determineDistortion(debug=True)
Expand Down
2 changes: 0 additions & 2 deletions geminidr/niri/recipes/sq/recipes_LS_SPECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ def makeWavecalFromSkyEmission(p):
p.addVAR(poisson_noise=True)
p.nonlinearityCorrect()
p.flatCorrect()
p.writeOutputs()
p.stackFrames()
p.makeIRAFCompatible()
p.determineWavelengthSolution()
p.cleanReadout()
p.determineDistortion(debug=True)
p.storeProcessedArc(force=True)
p.writeOutputs()
Expand Down
2 changes: 1 addition & 1 deletion gempy/library/wavecal.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def create_interactive_inputs(ad, ui_params=None, p=None,
else:
config=ui_params.toDict()
refplot_data = p._make_refplot_data(ext=ext, refplot_linelist=input_data["linelist"],
config=config, absorption=config.get("absorption"), in_vacuo=config["in_vacuo"])
config=config)
if refplot_data is not None:
input_data.update(refplot_data)

Expand Down

0 comments on commit 51d4923

Please sign in to comment.