Skip to content
Snippets Groups Projects

[AGIPD][TESTs]test_agipdlib AGIPDCtrl and get_bias_voltage for AGIPD1M and AGIPD500K

Merged Karim Ahmed requested to merge test/test_agipdlib into master
All threads resolved!
3 files
+ 8
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
3
@@ -219,7 +219,7 @@ class AgipdCtrl:
:param karabo_id_control: The detector karabo id, for the control device.
:param module: defaults to module 0
:return: voltage, a uint16
:return: bias voltage
"""
voltage_src = (
f"{karabo_id_control}/FPGA/M_{module}",
@@ -229,8 +229,7 @@ class AgipdCtrl:
voltage_src[0] in self.run_dc.all_sources and
voltage_src[1] in self.run_dc.keys_for_source(voltage_src[0])
):
return self.run_dc.get_run_value(*voltage_src)
return int(self.run_dc.get_run_value(*voltage_src))
else:
print(
"WARNING: Unable to read bias_voltage from"
Loading