Bugfix in Measurement, updated such that DaqChannel Qty can no longer be set in constructor
This commit is contained in:
parent
dd0b011fa3
commit
476d989898
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user