mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
@ -1488,6 +1488,18 @@ class Detector(CppDetectorApi):
|
||||
def master(self, value):
|
||||
ut.set_using_dict(self.setMaster, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def sync(self):
|
||||
"""
|
||||
[Jungfrau] Enables or disables synchronization between modules.
|
||||
"""
|
||||
return self.getSynchronization()
|
||||
|
||||
@sync.setter
|
||||
def sync(self, value):
|
||||
ut.set_using_dict(self.setSynchronization, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def lock(self):
|
||||
|
@ -183,6 +183,13 @@ void init_det(py::module &m) {
|
||||
py::arg() = Positions{})
|
||||
.def("setMaster", (void (Detector::*)(bool, int)) & Detector::setMaster,
|
||||
py::arg(), py::arg())
|
||||
.def("getSynchronization",
|
||||
(Result<bool>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getSynchronization,
|
||||
py::arg() = Positions{})
|
||||
.def("setSynchronization",
|
||||
(void (Detector::*)(bool)) & Detector::setSynchronization,
|
||||
py::arg())
|
||||
.def("isVirtualDetectorServer",
|
||||
(Result<bool>(Detector::*)(sls::Positions) const) &
|
||||
Detector::isVirtualDetectorServer,
|
||||
|
Reference in New Issue
Block a user