mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
python support for vetoalg
This commit is contained in:
@ -1084,6 +1084,17 @@ void init_det(py::module &m) {
|
||||
sls::Positions)) &
|
||||
Detector::setVetoStream,
|
||||
py::arg(), py::arg() = Positions{})
|
||||
.def("getVetoAlgorithm",
|
||||
(Result<defs::vetoAlgorithm>(Detector::*)(
|
||||
const defs::ethernetInterface, sls::Positions) const) &
|
||||
Detector::getVetoAlgorithm,
|
||||
py::arg(), py::arg() = Positions{})
|
||||
.def("setVetoAlgorithm",
|
||||
(void (Detector::*)(const defs::vetoAlgorithm,
|
||||
const defs::ethernetInterface,
|
||||
sls::Positions)) &
|
||||
Detector::setVetoAlgorithm,
|
||||
py::arg(), py::arg(), py::arg() = Positions{})
|
||||
.def("getADCConfiguration",
|
||||
(Result<int>(Detector::*)(const int, const int, sls::Positions)
|
||||
const) &
|
||||
|
@ -293,4 +293,9 @@ void init_enums(py::module &m) {
|
||||
py::overload_cast<const slsDetectorDefs::ethernetInterface &,
|
||||
const slsDetectorDefs::ethernetInterface &>(
|
||||
&operator&));
|
||||
|
||||
py::enum_<slsDetectorDefs::vetoAlgorithm>(Defs, "vetoAlgorithm")
|
||||
.value("DEFAULT_ALGORITHM",
|
||||
slsDetectorDefs::vetoAlgorithm::DEFAULT_ALGORITHM)
|
||||
.export_values();
|
||||
}
|
||||
|
Reference in New Issue
Block a user