From a6aaa2c3c64dbb2695bb2c9f738430082da1c767 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil <33750417+thattil@users.noreply.github.com> Date: Thu, 19 Jan 2023 11:03:04 +0100 Subject: [PATCH] adding fliprows to python (#625) --- python/slsdet/detector.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/python/slsdet/detector.py b/python/slsdet/detector.py index efd08cc78..5804047d5 100755 --- a/python/slsdet/detector.py +++ b/python/slsdet/detector.py @@ -1565,6 +1565,20 @@ class Detector(CppDetectorApi): def trimval(self, value): ut.set_using_dict(self.setAllTrimbits, value) + @property + @element + def fliprows(self): + """ + [Eiger] flips rows paramater sent to slsreceiver to stream as json parameter to flip rows in gui. \n + [Jungfrau] flips rows in the detector itself. For bottom module and number of interfaces must be set to 2. slsReceiver and slsDetectorGui does not handle. + """ + return self.getFlipRows() + + @fliprows.setter + def fliprows(self, value): + ut.set_using_dict(self.setFlipRows, value) + + @property @element def master(self):