mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
fix
This commit is contained in:
parent
61aa673be9
commit
833ca071c4
@ -250,7 +250,7 @@ class Detector {
|
||||
}
|
||||
|
||||
|
||||
std::array<uint64_t, 3> getPatternLoops(uint64_t level, int detPos) {
|
||||
std::array<int, 3> getPatternLoops(int level, int detPos) {
|
||||
return det.getPatternLoops(level, detPos);
|
||||
}
|
||||
|
||||
|
@ -300,17 +300,21 @@ PYBIND11_MODULE(_sls_detector, m) {
|
||||
.def("getNumberOfDetectors", &Detector::getNumberOfDetectors)
|
||||
.def("getDetectorGeometry", &Detector::getDetectorGeometry);
|
||||
|
||||
|
||||
|
||||
// Experimental API to use the multi directly and inherit from to reduce
|
||||
// code duplication need to investigate how to handle documentation
|
||||
py::class_<multiSlsDetector> multiDetectorApi(m, "multiDetectorApi");
|
||||
multiDetectorApi.def(py::init<int>())
|
||||
.def("acquire", &multiSlsDetector::acquire)
|
||||
|
||||
.def_property("online",
|
||||
py::cpp_function(&multiSlsDetector::setOnline, py::arg(), py::arg()=-1, py::arg("det_id")=-1),
|
||||
py::cpp_function(&multiSlsDetector::setOnline, py::arg(), py::arg("flag"), py::arg("det_id")=-1)
|
||||
)
|
||||
// .def("_setOnline", &multiSlsDetector::setOnline, py::arg("flag") = -1,
|
||||
.def_property("online",
|
||||
py::cpp_function(&multiSlsDetector::setOnline, py::arg(),
|
||||
py::arg() = -1, py::arg("det_id") = -1),
|
||||
py::cpp_function(&multiSlsDetector::setOnline, py::arg(),
|
||||
py::arg("flag"), py::arg("det_id") = -1))
|
||||
// .def("_setOnline", &multiSlsDetector::setOnline, py::arg("flag") =
|
||||
// -1,
|
||||
// py::arg("det_id") = -1)
|
||||
|
||||
.def_property_readonly(
|
||||
@ -328,7 +332,8 @@ PYBIND11_MODULE(_sls_detector, m) {
|
||||
py::cpp_function(&multiSlsDetector::getReceiverUDPIP,
|
||||
py::arg(), py::arg("det_id") = -1),
|
||||
py::cpp_function(&multiSlsDetector::setReceiverUDPIP,
|
||||
py::arg(), py::arg("ip"), py::arg("det_id") = -1) )
|
||||
py::arg(), py::arg("ip"),
|
||||
py::arg("det_id") = -1))
|
||||
.def("_getReceiverUDPIP", &multiSlsDetector::getReceiverUDPIP)
|
||||
.def("_setReceiverUDPIP", &multiSlsDetector::setReceiverUDPIP)
|
||||
.def("getPatternLoops", &multiSlsDetector::getPatternLoops,
|
||||
|
Loading…
x
Reference in New Issue
Block a user