From 476d989898362d8bd81b478921053ac7eec6fd59 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Thu, 19 Nov 2020 11:12:07 +0100 Subject: [PATCH] Bugfix in Measurement, updated such that DaqChannel Qty can no longer be set in constructor --- lasp/lasp_measurement.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lasp/lasp_measurement.py b/lasp/lasp_measurement.py index 42a4955..a5278a5 100644 --- a/lasp/lasp_measurement.py +++ b/lasp/lasp_measurement.py @@ -217,14 +217,15 @@ class Measurement: @property def channelConfig(self): - return [DaqChannel(channel_enabled=True, + chcfg = [DaqChannel(channel_enabled=True, channel_name=chname, - sensitivity=sens, - qty=qty) - for chname, sens, qty in zip( + sensitivity=sens,) + for chname, sens in zip( self.channelNames, - self.sensitivity, - self.qtys)] + self.sensitivity)] + for i, qty in enumerate(self.qtys): + chcfg[i].qty = qty + return chcfg @channelConfig.setter def channelConfig(self, chcfg):