Now that bug is fixed. Try2
This commit is contained in:
parent
1167a1e8ac
commit
ab1edaa530
@ -19,8 +19,8 @@ class DaqChannel:
|
|||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if len(self.channel_metadata) > 0:
|
if len(self.channel_metadata) > 0:
|
||||||
meta = json.loads(self.channel_metadata)
|
meta = json.loads(self.channel_metadata)
|
||||||
for key,val in meta.items():
|
if '_qty' in meta:
|
||||||
setattr(self, key, val)
|
self._qty = Qty.from_json(meta['_qty'])
|
||||||
else:
|
else:
|
||||||
self._qty = SIQtys.default
|
self._qty = SIQtys.default
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user