diff --git a/src/lasp/lasp_record.py b/src/lasp/lasp_record.py index 627c1ef..243a687 100644 --- a/src/lasp/lasp_record.py +++ b/src/lasp/lasp_record.py @@ -218,6 +218,10 @@ class Recording: # from StreamMgr. self.indh = None + # Remove handle to dataset otherwise the h5 file is not closed + # properly. + self.ad = None + try: # Close the recording file self.f.close()