From f164aa2e7123683668fcbfc6b78d1b40f3e6f73b Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Sun, 12 Mar 2023 13:02:18 +0100 Subject: [PATCH] Important BUG: opening a measurement tried to load the comment from the wrong place. Was stored as an attributed but was tried to recover as a dataset. --- src/lasp/lasp_measurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lasp/lasp_measurement.py b/src/lasp/lasp_measurement.py index ad0e8e9..8d2a012 100644 --- a/src/lasp/lasp_measurement.py +++ b/src/lasp/lasp_measurement.py @@ -234,7 +234,7 @@ class Measurement: self._channelNames = [f'Unnamed {i}' for i in range(self.nchannels)] # comment = read-write thing - if 'comment' in f.keys(): + if 'comment' in f.attrs: self._comment = f.attrs['comment'] else: self._comment = ''