Skip to content

Commit

Permalink
Closing dataset on __exit__
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopoabramo committed Oct 19, 2023
1 parent 8c86452 commit 40c1d5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pycromanager/acquisition/acquisition_superclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
self.mark_finished()
# now wait on it to finish
self.await_completion()
self.get_dataset().close()


def _validate_acq_events(events: dict or list):
Expand Down

0 comments on commit 40c1d5f

Please sign in to comment.