renamed.more intuitive
Build on RHEL9 docker image / build (push) Successful in 3m44s
Build on RHEL8 docker image / build (push) Successful in 5m1s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m17s
Run Simulator Tests on local RHEL8 / build (push) Successful in 21m48s

This commit is contained in:
2026-05-29 21:52:28 +02:00
parent d598126b27
commit 069a3d6af9
21 changed files with 284 additions and 311 deletions
+9 -8
View File
@@ -2429,11 +2429,12 @@ class Detector(CppDetectorApi):
"""
@property
def datastream(self):
def udp_datastream(self):
"""
datastream [LEFT|RIGHT|TOP|BOTTOM] [0, 1]
[Eiger] Enables or disables data streaming from left or/and right side of detector for 10GbE mode. 1 (enabled) by default. Options: LEFT, RIGHT.
[Jungfrau][Moench] Enables or disables data stream from top or/and bottom receiver. Can change only if numinterfaces is 2. 1 (enabled) by default. Options: TOP, BOTTOM.
[Eiger] Enable or disable UDP data streaming from the left and/or right detector ports in 10 GbE mode. Options: LEFT, RIGHT. Both ports are enabled by default.
[Jungfrau][Moench] Enable or disable UDP data streaming from the top and/or bottom receiver interfaces. This option is available only when numinterfaces is set to 2. Options: TOP, BOTTOM. Both interfaces are enabled by default.
Enum: portPosition
"""
result = {}
@@ -2443,12 +2444,12 @@ class Detector(CppDetectorApi):
ports = [defs.LEFT, defs.RIGHT]
for port in ports:
result[port] = element_if_equal(self.getDataStream(port))
result[port] = element_if_equal(self.getUDPDataStream(port))
return result
@datastream.setter
def datastream(self, value):
ut.set_using_dict(self.setDataStream, *value)
@udp_datastream.setter
def udp_datastream(self, value):
self.setUDPDataStream(*value)
@property
@element
+7 -4
View File
@@ -841,16 +841,19 @@ void init_det(py::module &m) {
CppDetectorApi.def(
"setTransmissionDelay",
(void (Detector::*)(int)) & Detector::setTransmissionDelay, py::arg());
CppDetectorApi.def("getDataStream",
CppDetectorApi.def("getUDPDataStream",
(Result<bool>(Detector::*)(const defs::portPosition,
sls::Positions) const) &
Detector::getDataStream,
Detector::getUDPDataStream,
py::arg(), py::arg() = Positions{});
CppDetectorApi.def("setDataStream",
CppDetectorApi.def("setUDPDataStream",
(void (Detector::*)(const defs::portPosition, const bool,
sls::Positions)) &
Detector::setDataStream,
Detector::setUDPDataStream,
py::arg(), py::arg(), py::arg() = Positions{});
CppDetectorApi.def("getRxDisabledUDPPortIndices",
(std::vector<int>(Detector::*)() const) &
Detector::getRxDisabledUDPPortIndices);
CppDetectorApi.def("getPortPositionList",
(std::vector<defs::portPosition>(Detector::*)() const) &
Detector::getPortPositionList);