diff --git a/pycromanager/acquisition/acquisition_superclass.py b/pycromanager/acquisition/acquisition_superclass.py index c6a0b670..720c08e5 100644 --- a/pycromanager/acquisition/acquisition_superclass.py +++ b/pycromanager/acquisition/acquisition_superclass.py @@ -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):