Skip to content
Snippets Groups Projects

JUNGFRAU: More user-friendly gain mode / gain setting parameters

Merged David Hammer requested to merge jungfrau-gainmode-enums into master
Files
2
@@ -7,7 +7,7 @@ from ..corrections.JungfrauCorrection import GainModes, GainSettings
def gain_mode_translator(gain_mode_string):
if gain_mode_string in {"dynamic", "forceswitchg1", "forceswitchg2"}:
return GainModes.DYNAMIC_GAIN.name
return GainModes.ADAPTIVE_GAIN.name
elif gain_mode_string in {"fixg1", "fixg2"}:
return GainModes.FIXED_GAIN.name
else:
Loading