Skip to content
Snippets Groups Projects

feat [Jungfrau][Dark]: Update notebook to write and read ccvs without using calibrationDBRemote

Merged Karim Ahmed requested to merge feat/remove_calibrationDBRemote_usage into master
1 file
+ 40
0
Compare changes
  • Side-by-side
  • Inline
@@ -852,6 +852,46 @@ class DSSCConditions(ConditionsBase):
}
@dataclass
class JUNGFRAUConditions(ConditionsBase):
"""Conditions for JUNGFRAU detectors"""
sensor_bias_voltage: float
memory_cells: int
integration_time: float
gain_setting: int
gain_mode: Optional[int] = None
sensor_temperature: float = 291
pixels_x: int = 1024
pixels_y: int = 512
_params = [
"Sensor Bias Voltage",
"Memory Cells",
"Pixels X",
"Pixels Y",
"Integration Time",
"Sensor temperature",
"Gain Setting",
"Gain mode",
]
calibration_types = {
"Offset10Hz": _params,
"Noise10Hz": _params,
"BadPixelsDark10Hz": _params,
"RelativeGain10Hz": _params,
"BadPixelsFF10Hz": _params,
}
def make_dict(self, parameters):
cond = super().make_dict(parameters)
# Fix-up some database quirks.
if int(cond.get("Gain mode", -1)) == 0:
del cond["Gain mode"]
return cond
@dataclass
class ShimadzuHPVX2Conditions(ConditionsBase):
burst_frame_count: float
Loading