mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 17:57:17 +01:00
python for datastream
This commit is contained in:
@@ -401,7 +401,9 @@ void init_det(py::module &m) {
|
||||
.def("startDetector", (void (Detector::*)()) & Detector::startDetector)
|
||||
.def("startDetectorReadout",
|
||||
(void (Detector::*)()) & Detector::startDetectorReadout)
|
||||
.def("stopDetector", (void (Detector::*)()) & Detector::stopDetector)
|
||||
.def("stopDetector",
|
||||
(void (Detector::*)(sls::Positions)) & Detector::stopDetector,
|
||||
py::arg() = Positions{})
|
||||
.def("getDetectorStatus",
|
||||
(Result<defs::runStatus>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getDetectorStatus,
|
||||
@@ -430,7 +432,7 @@ void init_det(py::module &m) {
|
||||
.def("sendSoftwareTrigger",
|
||||
(void (Detector::*)(const bool, sls::Positions)) &
|
||||
Detector::sendSoftwareTrigger,
|
||||
py::arg(), py::arg() = Positions{})
|
||||
py::arg() = false, py::arg() = Positions{})
|
||||
.def("getScan",
|
||||
(Result<defs::scanParameters>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getScan,
|
||||
@@ -911,6 +913,16 @@ void init_det(py::module &m) {
|
||||
py::arg() = Positions{})
|
||||
.def("setQuad", (void (Detector::*)(const bool)) & Detector::setQuad,
|
||||
py::arg())
|
||||
.def("getDataStream",
|
||||
(Result<bool>(Detector::*)(const defs::portPosition,
|
||||
sls::Positions) const) &
|
||||
Detector::getDataStream,
|
||||
py::arg(), py::arg() = Positions{})
|
||||
.def("setDataStream",
|
||||
(void (Detector::*)(const defs::portPosition, const bool,
|
||||
sls::Positions)) &
|
||||
Detector::setDataStream,
|
||||
py::arg(), py::arg(), py::arg() = Positions{})
|
||||
.def("getThresholdTemperature",
|
||||
(Result<int>(Detector::*)(sls::Positions) const) &
|
||||
Detector::getThresholdTemperature,
|
||||
|
||||
@@ -281,4 +281,11 @@ void init_enums(py::module &m) {
|
||||
.value("M3_C225ACsh", slsDetectorDefs::M3_GainCaps::M3_C225ACsh)
|
||||
.value("M3_C15pre", slsDetectorDefs::M3_GainCaps::M3_C15pre)
|
||||
.export_values();
|
||||
|
||||
py::enum_<slsDetectorDefs::portPosition>(Defs, "portPosition")
|
||||
.value("LEFT", slsDetectorDefs::portPosition::LEFT)
|
||||
.value("RIGHT", slsDetectorDefs::portPosition::RIGHT)
|
||||
.value("TOP", slsDetectorDefs::portPosition::TOP)
|
||||
.value("BOTTOM", slsDetectorDefs::portPosition::BOTTOM)
|
||||
.export_values();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user