Merge branch 'developer' into dev/fix-pattern-generator
Build on RHEL9 docker image / build (push) Successful in 4m6s
Build on RHEL8 docker image / build (push) Successful in 5m28s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m7s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m38s

This commit is contained in:
Erik Fröjdh
2026-09-30 18:15:16 +02:00
committed by GitHub
132 changed files with 158016 additions and 2488 deletions
+11 -4
View File
@@ -2140,6 +2140,8 @@ class Detector(CppDetectorApi):
firmware_febl = "Unknown"
firmware_febr = "Unknown"
firmware_beb = "Unknown"
jungfrau = False
chip = "Unknown"
receiver_in_shm = False
release = self.packageversion
@@ -2149,6 +2151,7 @@ class Detector(CppDetectorApi):
# shared memory has detectors
type = self.type
eiger = (self.type == detectorType.EIGER)
jungfrau = (self.type == detectorType.JUNGFRAU)
receiver_in_shm = self.use_receiver
if receiver_in_shm:
# cannot connect to receiver
@@ -2166,6 +2169,8 @@ class Detector(CppDetectorApi):
firmware_beb = self.firmwareversion
firmware_febl = self.getFrontEndFirmwareVersion(slsDetectorDefs.fpgaPosition.FRONT_LEFT)
firmware_febr = self.getFrontEndFirmwareVersion(slsDetectorDefs.fpgaPosition.FRONT_RIGHT)
if jungfrau:
chip = self.chipversion
except Exception as e:
pass
@@ -2178,6 +2183,8 @@ class Detector(CppDetectorApi):
version_list ['firmware (Febr)'] = {firmware_febr}
else:
version_list ['firmware'] = {firmware}
if jungfrau:
version_list ['chip'] = {chip}
version_list ['detectorserver'] = {detectorserver}
version_list ['kernel'] = kernel
version_list ['hardware'] = hardware
@@ -2347,8 +2354,8 @@ class Detector(CppDetectorApi):
Note
-----
Default: AUTO_TIMING \n
[Jungfrau][Moench][Ctb][Gotthard2][Xilinx Ctb] AUTO_TIMING, TRIGGER_EXPOSURE \n
[Mythen3] AUTO_TIMING, TRIGGER_EXPOSURE, GATED, TRIGGER_GATED \n
[Jungfrau][Moench][Ctb][Gotthard2] AUTO_TIMING, TRIGGER_EXPOSURE \n
[Mythen3][Xilinx Ctb] AUTO_TIMING, TRIGGER_EXPOSURE, GATED, TRIGGER_GATED \n
[Eiger] AUTO_TIMING, TRIGGER_EXPOSURE, GATED, BURST_TRIGGER
"""
return self.getTimingMode()
@@ -2738,12 +2745,12 @@ class Detector(CppDetectorApi):
@element
def chipversion(self):
"""
[Jungfrau] Chip version of module. Can be 1.0 or 1.1.
[Jungfrau] Chip version of module.
Example
-------
>>> d.chipversion
'1.0'
'1.2 Normal'
"""
return self.getChipVersion()
+5 -4
View File
@@ -1197,10 +1197,11 @@ void init_det(py::module &m) {
CppDetectorApi.def(
"setTop", (void (Detector::*)(bool, sls::Positions)) & Detector::setTop,
py::arg(), py::arg() = Positions{});
CppDetectorApi.def("getChipVersion",
(Result<double>(Detector::*)(sls::Positions) const) &
Detector::getChipVersion,
py::arg() = Positions{});
CppDetectorApi.def(
"getChipVersion",
(Result<std::string>(Detector::*)(sls::Positions) const) &
Detector::getChipVersion,
py::arg() = Positions{});
CppDetectorApi.def("getThresholdTemperature",
(Result<int>(Detector::*)(sls::Positions) const) &
Detector::getThresholdTemperature,