Skip to content

Commit

Permalink
Merge branch 'release/3.2.x' - post 3.2.0 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
KathleenLabrie committed Apr 22, 2024
2 parents 9bb8877 + a313ebb commit 98f1130
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions gemini_instruments/gnirs/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,27 @@ def well_depth_setting(self):
else:
return "Unknown"

def prism_motor_steps(self):
"""
Returns the PRSM_ENG header value, which is the step count of the prism
mechanism. This is needed to associate HR-IFR (at least) flats correctly
following discovery in Apr-2024 that the prism mechanism does not
position with sufficient reproducability for the HR-IFU. Thus, sci-ops
will tweak the step count on the fly at the start of a sequence, taking
"dummy" flats to do so. The correct flat to use must have the same
prism_eng value as the science.
Returns
-------
PRSM_ENG value from the PHU as an int, or None if unable.
"""

try:
return int(self.phu.get('PRSM_ENG'))
except (ValueError, TypeError):
return None


# --------------------------------------
# Private methods
def _grating(self, stripID=False, pretty=False):
Expand Down
1 change: 1 addition & 0 deletions geminidr/core/primitives_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -4102,6 +4102,7 @@ def recalc_fn(ad: AstroData, ui_parms: UIParameters):
recalc_inputs_above=True,
ui_params=ui_params,
reinit_live=True)

geminidr.interactive.server.interactive_fitter(visualizer)

# Pull out the final parameters to use as inputs doing the real fit
Expand Down
1 change: 1 addition & 0 deletions geminidr/interactive/fit/fit1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,7 @@ def __init__(
The class of Panel to use in each tab. This allows specific
operability for each primitive since most of the functions that do
the work are methods of this class.
reinit_live : bool
If True, some buttons and parameters will will recalculate the data
points immediately. If False, the reinit button will be disabled
Expand Down

0 comments on commit 98f1130

Please sign in to comment.