From 7391cda68a7e8bc1b8f2277e17448c9c41934c0c Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Tue, 14 Jun 2022 10:54:17 +0200 Subject: [PATCH] introduce SinglePhoton and OperationMode --- src/cal_tools/gotthard2/gotthard2lib.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/cal_tools/gotthard2/gotthard2lib.py b/src/cal_tools/gotthard2/gotthard2lib.py index 8a0a32b5d..ecea31947 100644 --- a/src/cal_tools/gotthard2/gotthard2lib.py +++ b/src/cal_tools/gotthard2/gotthard2lib.py @@ -17,6 +17,13 @@ class Gotthard2Ctrl(): def get_bias_voltage(self): return(self.run_dc[self.ctrl_src, "highVoltageMax"].as_single_value()) +<<<<<<< HEAD +======= + def get_acquisition_time(self): + return( + float(self.run_dc.get_run_value(self.ctrl_src, "operationMode"))) + +>>>>>>> introduce SinglePhoton and OperationMode def get_exposure_time(self): return(round( self.run_dc[self.ctrl_src, "exposureTime"].as_single_value(), 4)) @@ -31,7 +38,13 @@ class Gotthard2Ctrl(): float(self.run_dc.get_run_value( self.ctrl_src, "acquisitionRate"))) +<<<<<<< HEAD def get_single_photon(self): if "singlePhoton.value" in self.run_dc.keys_for_source(self.ctrl_src): # noqa return( bool(self.run_dc[self.ctrl_src, "singlePhoton"].as_single_value())) # noqa +======= + def get_gain_setting(self): + return( + bool(self.run_dc[self.ctrl_src, "singlePhoton"].as_single_value())) +>>>>>>> introduce SinglePhoton and OperationMode -- GitLab