diff --git a/src/lasp/dsp/lasp_clip.h b/src/lasp/dsp/lasp_clip.h index fde6985..e5f76e5 100644 --- a/src/lasp/dsp/lasp_clip.h +++ b/src/lasp/dsp/lasp_clip.h @@ -1,8 +1,8 @@ // lasp_clip.h // -// Author: J.A. de Jong - ASCEE +// Author: J.A. de Jong, C.R.D. Jansen - ASCEE // -// Description: Peak Programme Meter +// Description: Clip handler #pragma once #include #include "lasp_filter.h" diff --git a/src/lasp/lasp_measurement.py b/src/lasp/lasp_measurement.py index d3b5a0f..ad0e8e9 100644 --- a/src/lasp/lasp_measurement.py +++ b/src/lasp/lasp_measurement.py @@ -196,7 +196,7 @@ class Measurement: # Open the h5 file in read-plus mode, to allow for changing the # measurement comment. - with h5.File(fn, 'r+') as f: + with h5.File(fn, 'r') as f: # Check for video data try: f['video'] @@ -234,10 +234,9 @@ class Measurement: self._channelNames = [f'Unnamed {i}' for i in range(self.nchannels)] # comment = read-write thing - try: + if 'comment' in f.keys(): self._comment = f.attrs['comment'] - except KeyError: - f.attrs['comment'] = '' + else: self._comment = '' # Sensitivity