From 3954913661a406b733705b1792e41604915a7a90 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Thu, 27 Aug 2020 16:45:14 +0200 Subject: [PATCH] fixed ratecorr 0 in python --- python/slsdet/detector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/slsdet/detector.py b/python/slsdet/detector.py index 7e489e303..404f4cb38 100755 --- a/python/slsdet/detector.py +++ b/python/slsdet/detector.py @@ -868,6 +868,8 @@ class Detector(CppDetectorApi): @ratecorr.setter def ratecorr(self, tau): + if isinstance(tau, int): + tau = float(tau) self.setRateCorrection(tau) @property