From 0d9efab4ba969480d7b5a7f7cbe0b4a545495d44 Mon Sep 17 00:00:00 2001
From: Martin Killenberg <martin.killenberg@desy.de>
Date: Fri, 11 Aug 2023 16:51:02 +0200
Subject: [PATCH] fix: adapt climate chamber dummy and VNA dummy

---
 Python_script/VNA.py                   | 4 +---
 Python_script/VNA_dummy.py             | 3 +++
 Python_script/climate_chamber.py       | 1 -
 Python_script/climate_chamber_dummy.py | 4 ++++
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Python_script/VNA.py b/Python_script/VNA.py
index dafa59e..35d240c 100755
--- a/Python_script/VNA.py
+++ b/Python_script/VNA.py
@@ -230,10 +230,8 @@ class Vna:
         #wait until finished
         self.vna.query('*OPC?')
         
-    # method to reset status regsisters and queues of VNA, Michael  
+    # reset status registers and queues of the VNA
     def reset_status(self):
-        
-        # reset status byte, standard event register, clear output buffer and error buffer, Michael
         self.vna.write('*CLS')
     
     def close(self):
diff --git a/Python_script/VNA_dummy.py b/Python_script/VNA_dummy.py
index 6926088..ab2e317 100644
--- a/Python_script/VNA_dummy.py
+++ b/Python_script/VNA_dummy.py
@@ -153,3 +153,6 @@ class VnaDummy:
 
     def do_single_sweep(self):
         pass
+
+    def reset_status(self):
+        pass
diff --git a/Python_script/climate_chamber.py b/Python_script/climate_chamber.py
index 1a2eb8d..3512e43 100755
--- a/Python_script/climate_chamber.py
+++ b/Python_script/climate_chamber.py
@@ -248,7 +248,6 @@ class ClimateChamber:
             time.sleep(10)
             break
     
-    # request percentage temperature heater, humidity heater from climate chamber, Michael 
     def get_heater_percentage(self):
         
         response = self.chamber.query("%?", delay=MONITOR_COMMAND_DELAY)
diff --git a/Python_script/climate_chamber_dummy.py b/Python_script/climate_chamber_dummy.py
index 3b62f35..e98f919 100644
--- a/Python_script/climate_chamber_dummy.py
+++ b/Python_script/climate_chamber_dummy.py
@@ -161,3 +161,7 @@ class ClimateChamberDummy:
 
     def __del__(self):
         self.close()
+
+    def get_heater_percentage(self):
+        return 0.0, 0.0
+
-- 
GitLab