mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
python
This commit is contained in:
@ -284,9 +284,11 @@ PYBIND11_MODULE(_sls_detector, m) {
|
||||
.def("getPatternWord", &Detector::getPatternWord, py::arg("addr"),
|
||||
py::arg("det_id") = -1)
|
||||
|
||||
.def("setPatternIOControl", &Detector::setPatternIOControl, py::arg("word"), py::arg("det_id") = -1)
|
||||
.def("setPatternClockControl", &Detector::setPatternClockControl, py::arg("word"), py::arg("det_id") = -1)
|
||||
|
||||
.def("setPatternIOControl", &Detector::setPatternIOControl,
|
||||
py::arg("word"), py::arg("det_id") = -1)
|
||||
.def("setPatternClockControl", &Detector::setPatternClockControl,
|
||||
py::arg("word"), py::arg("det_id") = -1)
|
||||
|
||||
.def("setPatternWaitAddr", &Detector::setPatternWaitAddr,
|
||||
py::arg("level"), py::arg("addr"), py::arg("det_id") = -1)
|
||||
.def("getPatternWaitAddr", &Detector::getPatternWaitAddr,
|
||||
@ -303,8 +305,6 @@ 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");
|
||||
@ -316,10 +316,15 @@ PYBIND11_MODULE(_sls_detector, m) {
|
||||
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("exptime",
|
||||
py::cpp_function(&multiSlsDetector::setExposureTime,
|
||||
py::arg(), py::arg() = -1, py::arg() = 0,
|
||||
py::arg("det_id") = -1),
|
||||
py::cpp_function(&multiSlsDetector::setExposureTime,
|
||||
py::arg(), py::arg() = -1, py::arg() = 0,
|
||||
py::arg("det_id") = -1))
|
||||
.def("getExposureTime", &multiSlsDetector::setExposureTime, py::arg()=-1,
|
||||
py::arg() = 0, py::arg("det_id") = -1)
|
||||
.def_property_readonly(
|
||||
"hostname", py::cpp_function(&multiSlsDetector::getHostname,
|
||||
py::arg(), py::arg("det_id") = -1))
|
||||
|
Reference in New Issue
Block a user