From b2a72c064d61971b3308f321986f22c8e885c649 Mon Sep 17 00:00:00 2001
From: Milan Prica <milan.prica@elettra.eu>
Date: Fri, 27 Nov 2020 14:25:19 +0100
Subject: [PATCH] Allow for calibration even if already calibrated.

---
 src/Smaract_mcs2.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Smaract_mcs2.py b/src/Smaract_mcs2.py
index a219eaf..82eabab 100755
--- a/src/Smaract_mcs2.py
+++ b/src/Smaract_mcs2.py
@@ -927,9 +927,9 @@ class Smaract_mcs2 (PyTango.Device_4Impl):
 
     def Calibrate(self):
         self.debug_stream("In Calibrate()")
-        if self.attr_IsCalibrated_read:
-            self.debug_stream("Already calibrated. Do nothing.")
-            return        
+        # if self.attr_IsCalibrated_read:
+        #     self.debug_stream("Already calibrated. Do nothing.")
+        #     return
         cmd_str = ":CHAN" + self.chan + ":CAL:OPT 0"
         self.socket_write(cmd_str)
         # start actual calibration:
-- 
GitLab