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.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Anne de Jong 2023-03-12 13:02:18 +01:00
parent ec2a933e20
commit f164aa2e71

View File

@ -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 = ''