diff --git a/bapsf_motion/utils/__init__.py b/bapsf_motion/utils/__init__.py index 86a3b006..1300d550 100644 --- a/bapsf_motion/utils/__init__.py +++ b/bapsf_motion/utils/__init__.py @@ -12,8 +12,10 @@ "loop_safe_stop", "dict_equal", ] + import asyncio import re +import threading import time from astropy import units @@ -40,6 +42,7 @@ class SimpleSignal: def __init__(self): self._handlers = None self._block = False + self._main_thread = threading.main_thread() @property def handlers(self) -> List[Callable]: