From 267fa385659104a2fb41188a4e5ed6f51ce8f828 Mon Sep 17 00:00:00 2001 From: fdrgsp Date: Sun, 4 Feb 2024 22:43:56 -0500 Subject: [PATCH] fix: add _mda_running --- src/napari_micromanager/_mda_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/napari_micromanager/_mda_handler.py b/src/napari_micromanager/_mda_handler.py index f1729203..861560bb 100644 --- a/src/napari_micromanager/_mda_handler.py +++ b/src/napari_micromanager/_mda_handler.py @@ -91,6 +91,7 @@ def __init__(self, mmcore: CMMCorePlus, viewer: napari.viewer.Viewer) -> None: # mapping of id -> (zarr.Array, temporary directory) for each layer created self._tmp_arrays: dict[str, tuple[zarr.Array, tempfile.TemporaryDirectory]] = {} self._deck: deque[tuple[np.ndarray, MDAEvent]] = deque() + self._mda_running: bool = False # Add all core connections to this list. This makes it easy to disconnect # from core when this widget is closed.