Skip to content

Commit

Permalink
Merge pull request #382 from qipe-nlab/fix-ddh5writer-exit
Browse files Browse the repository at this point in the history
Fix a bug in DDH5Writer.__exit__
  • Loading branch information
marcosfrenkel committed Feb 24, 2023
2 parents a877d5c + f0fb985 commit 262d2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plottr/data/datadict_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def __exit__(self,
exc_traceback: Optional[TracebackType]) -> None:
assert self.filepath is not None
with FileOpener(self.filepath, 'a', timeout=self.file_timeout) as f:
add_cur_time_attr(f[self.groupname], name='close')
add_cur_time_attr(f.require_group(self.groupname), name='close')
if exc_type is None:
# exiting because the measurement is complete
self.add_tag('__complete__')
Expand Down

0 comments on commit 262d2bc

Please sign in to comment.