Skip to content

Commit

Permalink
implement F2Spect._apply_wavelength_model_bounds() to maintain value …
Browse files Browse the repository at this point in the history
…of 10
  • Loading branch information
chris-simpson committed Apr 19, 2024
1 parent 7889298 commit 779d249
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geminidr/f2/primitives_f2_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,10 @@ def _get_resolution(self, ext):
slit_width = fpmask
disperser = ext.disperser(pretty=True)
return resolving_power.get(f"{slit_width}", {}).get(f"{disperser}", None)

def _apply_wavelength_model_bounds(self, model=None, ext=None):
# Apply bounds to an astropy.modeling.models.Chebyshev1D to indicate
# the range of parameter space to explore
# The default here is 2% tolerance in central wavelength and dispersion
super()._apply_wavelength_model_bounds(model, ext)
model.c0.bounds = (model.c0 - 10, model.c0 + 10)

0 comments on commit 779d249

Please sign in to comment.