From ccbb97e40aed581ac418e5c8f681bccfb351f8b1 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 20 Nov 2026 11:22:53 +0100 Subject: [PATCH] update pybindings and fix python warnings (#1694) --- python/slsdet/detector.py | 8 ++++---- python/src/detector.cpp | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python/slsdet/detector.py b/python/slsdet/detector.py index 581de9337..e17c703a8 100755 --- a/python/slsdet/detector.py +++ b/python/slsdet/detector.py @@ -834,13 +834,13 @@ class Detector(CppDetectorApi): ---- Sets up the following for every module: - [Eiger] txdelay_left to (2 \* mod_index \* n_delay), + [Eiger] txdelay_left to (2 * mod_index * n_delay), - [Eiger] txdelay_right to ((2 \* mod_index + 1) \* n_delay) and + [Eiger] txdelay_right to ((2 * mod_index + 1) * n_delay) and - [Eiger] txdelay_frame to (2 \* num_modules \* n_delay) + [Eiger] txdelay_frame to (2 * num_modules * n_delay) - [Jungfrau][Moench][Mythen3] txdelay_frame to (num_modules \* n_delay) + [Jungfrau][Moench][Mythen3] txdelay_frame to (num_modules * n_delay) Please refer txdelay_left, txdelay_right and txdelay_frame for details. """ diff --git a/python/src/detector.cpp b/python/src/detector.cpp index a17590818..1d000ba25 100644 --- a/python/src/detector.cpp +++ b/python/src/detector.cpp @@ -960,6 +960,8 @@ void init_det(py::module &m) { py::arg()); CppDetectorApi.def("clearRxROI", (void(Detector::*)()) & Detector::clearRxROI); + CppDetectorApi.def("isCompleteRxRoi", (bool (Detector::*)() const) & + Detector::isCompleteRxRoi); CppDetectorApi.def( "getFileFormat", (Result(Detector::*)(sls::Positions) const) &