From 3cd475c60bcae27ff54ec3cae26f5cc034485301 Mon Sep 17 00:00:00 2001
From: David Hammer <dhammer@mailbox.org>
Date: Fri, 3 Sep 2021 16:11:27 +0200
Subject: [PATCH] Only update output channel part of schema

---
 src/calng/DsscCorrection.py | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/calng/DsscCorrection.py b/src/calng/DsscCorrection.py
index 14827f09..19bda71c 100644
--- a/src/calng/DsscCorrection.py
+++ b/src/calng/DsscCorrection.py
@@ -774,16 +774,17 @@ class DsscCorrection(calibrationBase.CalibrationReceiverBaseDevice):
 
         """
 
-        self.log.INFO("Updating the output schema based on actual outgoing data")
-        my_schema = self.getFullSchema()
+        self.log.INFO("Updating output schema")
+        my_schema_update = Schema()
         data_schema = hashToSchema.HashToSchema(data).schema
-        OUTPUT_CHANNEL(my_schema).key("dataOutput").dataSchema(data_schema).commit()
-        my_config = copy.copy(self.getCurrentConfiguration())
-        self.updateSchema(my_schema)
-        self.log.INFO("Re-applying backed up config")
-        self.set(my_config)
+        (
+            OUTPUT_CHANNEL(my_schema_update)
+            .key("dataOutput")
+            .dataSchema(data_schema)
+            .commit()
+        )
+        self.updateSchema(my_schema_update)
         self._has_set_output_schema = True
-        self.log.INFO("Ready to continue")
 
     def _update_pulse_filter(self, filter_string):
         """Called whenever the pulse filter changes, typically followed by
-- 
GitLab