Bugfix in Measurement, updated such that DaqChannel Qty can no longer be set in constructor

This commit is contained in:
Anne de Jong 2020-11-19 11:12:07 +01:00
parent dd0b011fa3
commit 476d989898

View File

@ -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):