Skip to content
Snippets Groups Projects
Commit 51c21a49 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

add operation mode and single photon

parent 7391cda6
No related branches found
No related tags found
1 merge request!684[Gotthard-II] Dark Processing.
...@@ -29,6 +29,8 @@ ext_modules = [ ...@@ -29,6 +29,8 @@ ext_modules = [
"cal_tools.gotthard2.gotthard2algs", "cal_tools.gotthard2.gotthard2algs",
["src/cal_tools/gotthard2/gotthard2algs.pyx"], ["src/cal_tools/gotthard2/gotthard2algs.pyx"],
include_dirs=[numpy.get_include()], include_dirs=[numpy.get_include()],
extra_compile_args=["-fopenmp", "-march=native"],
extra_link_args=["-fopenmp"],
), ),
] ]
......
...@@ -17,6 +17,7 @@ class Gotthard2Ctrl(): ...@@ -17,6 +17,7 @@ class Gotthard2Ctrl():
def get_bias_voltage(self): def get_bias_voltage(self):
return(self.run_dc[self.ctrl_src, "highVoltageMax"].as_single_value()) return(self.run_dc[self.ctrl_src, "highVoltageMax"].as_single_value())
<<<<<<< HEAD
<<<<<<< HEAD <<<<<<< HEAD
======= =======
def get_acquisition_time(self): def get_acquisition_time(self):
...@@ -24,6 +25,8 @@ class Gotthard2Ctrl(): ...@@ -24,6 +25,8 @@ class Gotthard2Ctrl():
float(self.run_dc.get_run_value(self.ctrl_src, "operationMode"))) float(self.run_dc.get_run_value(self.ctrl_src, "operationMode")))
>>>>>>> introduce SinglePhoton and OperationMode >>>>>>> introduce SinglePhoton and OperationMode
=======
>>>>>>> add operation mode and single photon
def get_exposure_time(self): def get_exposure_time(self):
return(round( return(round(
self.run_dc[self.ctrl_src, "exposureTime"].as_single_value(), 4)) self.run_dc[self.ctrl_src, "exposureTime"].as_single_value(), 4))
...@@ -38,6 +41,7 @@ class Gotthard2Ctrl(): ...@@ -38,6 +41,7 @@ class Gotthard2Ctrl():
float(self.run_dc.get_run_value( float(self.run_dc.get_run_value(
self.ctrl_src, "acquisitionRate"))) self.ctrl_src, "acquisitionRate")))
<<<<<<< HEAD
<<<<<<< HEAD <<<<<<< HEAD
def get_single_photon(self): def get_single_photon(self):
if "singlePhoton.value" in self.run_dc.keys_for_source(self.ctrl_src): # noqa if "singlePhoton.value" in self.run_dc.keys_for_source(self.ctrl_src): # noqa
...@@ -45,6 +49,16 @@ class Gotthard2Ctrl(): ...@@ -45,6 +49,16 @@ class Gotthard2Ctrl():
bool(self.run_dc[self.ctrl_src, "singlePhoton"].as_single_value())) # noqa bool(self.run_dc[self.ctrl_src, "singlePhoton"].as_single_value())) # noqa
======= =======
def get_gain_setting(self): def get_gain_setting(self):
=======
def get_exposure_period(self):
return(self.run_dc[self.ctrl_src, "exposurePeriod"].as_single_value())
def get_operation_mode(self):
return(
float(self.run_dc.get_run_value(self.ctrl_src, "operationMode")))
def get_single_photon(self):
>>>>>>> add operation mode and single photon
return( return(
bool(self.run_dc[self.ctrl_src, "singlePhoton"].as_single_value())) bool(self.run_dc[self.ctrl_src, "singlePhoton"].as_single_value()))
>>>>>>> introduce SinglePhoton and OperationMode >>>>>>> introduce SinglePhoton and OperationMode
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment