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
|
@property
|
||||||
def channelConfig(self):
|
def channelConfig(self):
|
||||||
return [DaqChannel(channel_enabled=True,
|
chcfg = [DaqChannel(channel_enabled=True,
|
||||||
channel_name=chname,
|
channel_name=chname,
|
||||||
sensitivity=sens,
|
sensitivity=sens,)
|
||||||
qty=qty)
|
for chname, sens in zip(
|
||||||
for chname, sens, qty in zip(
|
|
||||||
self.channelNames,
|
self.channelNames,
|
||||||
self.sensitivity,
|
self.sensitivity)]
|
||||||
self.qtys)]
|
for i, qty in enumerate(self.qtys):
|
||||||
|
chcfg[i].qty = qty
|
||||||
|
return chcfg
|
||||||
|
|
||||||
@channelConfig.setter
|
@channelConfig.setter
|
||||||
def channelConfig(self, chcfg):
|
def channelConfig(self, chcfg):
|
||||||
|
Loading…
Reference in New Issue
Block a user