Skip to content
Snippets Groups Projects

[AGIPD] Read bias_voltage for AGIPD at SPB and MID from RUN source

Merged Karim Ahmed requested to merge fix/get_bias_voltage_SPB_MID into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -202,11 +202,14 @@ class AgipdCtrl:
"highVoltage.actual.value")
default_voltage = None
if (
voltage_src[0] in self.run_dc.all_sources and
voltage_src[1] in self.run_dc.keys_for_source(voltage_src[0])
):
# Use RUN source for reading the bias voltage value.
# As HED_DET_AGIPD500K2G has a hardware issue that leads
# to storing arbitrary voltage values in the CONTROL source
# array. e.g. /gpfs/exfel/exp/HED/202230/p900248/raw
return int(self.run_dc.get_run_value(*voltage_src))
else:
# TODO: Validate if removing this and
Loading