mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-14 09:05:36 +02:00
wip: ctb power works, tests left
This commit is contained in:
@@ -1555,15 +1555,15 @@ void init_det(py::module &m) {
|
||||
(std::vector<defs::dacIndex>(Detector::*)() const) &
|
||||
Detector::getSlowADCList);
|
||||
CppDetectorApi.def(
|
||||
"getPower",
|
||||
(Result<int>(Detector::*)(defs::dacIndex, sls::Positions) const) &
|
||||
Detector::getPower,
|
||||
"isPowerEnabled",
|
||||
(Result<bool>(Detector::*)(defs::dacIndex, sls::Positions) const) &
|
||||
Detector::isPowerEnabled,
|
||||
py::arg(), py::arg() = Positions{});
|
||||
CppDetectorApi.def(
|
||||
"setPower",
|
||||
(void (Detector::*)(defs::dacIndex, int, sls::Positions)) &
|
||||
Detector::setPower,
|
||||
py::arg(), py::arg(), py::arg() = Positions{});
|
||||
CppDetectorApi.def("setPowerEnabled",
|
||||
(void (Detector::*)(const std::vector<defs::dacIndex> &,
|
||||
bool, sls::Positions)) &
|
||||
Detector::setPowerEnabled,
|
||||
py::arg(), py::arg(), py::arg() = Positions{});
|
||||
CppDetectorApi.def("getADCVpp",
|
||||
(Result<int>(Detector::*)(bool, sls::Positions) const) &
|
||||
Detector::getADCVpp,
|
||||
|
||||
Reference in New Issue
Block a user