From ab1edaa530b88cf0375a422c9cca500dffd5fe08 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Mon, 14 Jun 2021 16:57:20 +0200 Subject: [PATCH] Now that bug is fixed. Try2 --- lasp/device/lasp_device_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lasp/device/lasp_device_common.py b/lasp/device/lasp_device_common.py index 0790fdb..1ad2cec 100644 --- a/lasp/device/lasp_device_common.py +++ b/lasp/device/lasp_device_common.py @@ -19,8 +19,8 @@ class DaqChannel: def __post_init__(self): if len(self.channel_metadata) > 0: meta = json.loads(self.channel_metadata) - for key,val in meta.items(): - setattr(self, key, val) + if '_qty' in meta: + self._qty = Qty.from_json(meta['_qty']) else: self._qty = SIQtys.default