diff --git a/src/calng/DsscCorrection.py b/src/calng/DsscCorrection.py index 14827f093cb979070a9a46961b3a9eba2b298e65..19bda71cb013ca58cf95e3adb298157be32742fc 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