From a0008df449f0f2f766cc4b4b8f8ead8ecd23610b Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 21 May 2026 09:00:51 +0200 Subject: [PATCH] added python bindings and formatting (does nothing really) --- python/src/detector.cpp | 4 ++++ slsDetectorGui/src/qDrawPlot.cpp | 1 - slsSupportLib/include/sls/file_utils.h | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/src/detector.cpp b/python/src/detector.cpp index ff14eaafa..482976edc 100644 --- a/python/src/detector.cpp +++ b/python/src/detector.cpp @@ -1083,6 +1083,10 @@ void init_det(py::module &m) { CppDetectorApi.def("setRxZmqHwm", (void (Detector::*)(const int)) & Detector::setRxZmqHwm, py::arg()); + CppDetectorApi.def("streamRxDummyHeader", + (void (Detector::*)(sls::Positions) const) & + Detector::streamRxDummyHeader, + py::arg() = Positions{}); CppDetectorApi.def("getSubExptime", (Result(Detector::*)(sls::Positions) const) & Detector::getSubExptime, diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index 86d43dc66..54ffffbfd 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -620,7 +620,6 @@ void qDrawPlot::StartAcquisition() { "qDrawPlot::StartAcquisition"); } - QtConcurrent::run(this, &qDrawPlot::AcquireThread); LOG(logDEBUG) << "End of Starting Acquisition in qDrawPlot"; diff --git a/slsSupportLib/include/sls/file_utils.h b/slsSupportLib/include/sls/file_utils.h index 81aa3d19b..cc3f61201 100644 --- a/slsSupportLib/include/sls/file_utils.h +++ b/slsSupportLib/include/sls/file_utils.h @@ -11,7 +11,6 @@ namespace sls { - std::vector readBinaryFile(const std::string &fname, const std::string &errorPrefix);