mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
@ -1682,6 +1682,30 @@ class Detector(CppDetectorApi):
|
||||
def badchannels(self, value):
|
||||
ut.set_using_dict(self.setBadChannels, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def row(self):
|
||||
"""
|
||||
Set Detector row (udp header) to value. Gui uses it to rearrange for complete image.
|
||||
"""
|
||||
return self.getRow()
|
||||
|
||||
@row.setter
|
||||
def row(self, value):
|
||||
ut.set_using_dict(self.setRow, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def column(self):
|
||||
"""
|
||||
Set Detector column (udp header) to value. Gui uses it to rearrange for complete image.
|
||||
"""
|
||||
return self.getColumn()
|
||||
|
||||
@column.setter
|
||||
def column(self, value):
|
||||
ut.set_using_dict(self.setColumn, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def lock(self):
|
||||
|
@ -239,6 +239,22 @@ void init_det(py::module &m) {
|
||||
(void (Detector::*)(const std::vector<std::vector<int>>)) &
|
||||
Detector::setBadChannels,
|
||||
py::arg());
|
||||
CppDetectorApi.def("getRow",
|
||||
(Result<int>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getRow,
|
||||
py::arg() = Positions{});
|
||||
CppDetectorApi.def("setRow",
|
||||
(void (Detector::*)(const int, sls::Positions)) &
|
||||
Detector::setRow,
|
||||
py::arg(), py::arg() = Positions{});
|
||||
CppDetectorApi.def("getColumn",
|
||||
(Result<int>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getColumn,
|
||||
py::arg() = Positions{});
|
||||
CppDetectorApi.def("setColumn",
|
||||
(void (Detector::*)(const int, sls::Positions)) &
|
||||
Detector::setColumn,
|
||||
py::arg(), py::arg() = Positions{});
|
||||
CppDetectorApi.def("isVirtualDetectorServer",
|
||||
(Result<bool>(Detector::*)(sls::Positions) const) &
|
||||
Detector::isVirtualDetectorServer,
|
||||
|
Reference in New Issue
Block a user