From cabf3e0c4426f7b5450db6b66afdb1d7864e1897 Mon Sep 17 00:00:00 2001 From: Mathis Kelm Date: Thu, 15 Aug 2024 15:28:02 +0200 Subject: [PATCH] [fixup] Fix scope in delayed init in micro_manager --- micro_manager/micro_manager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index 99a57e3..513ec59 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -167,12 +167,12 @@ def solve(self) -> None: + 1 ] )[0] - micro_problem = getattr( - importlib.import_module( - self._config.get_micro_file_name(), "MicroSimulation" - ), - "MicroSimulation", - ) + micro_problem = getattr( + importlib.import_module( + self._config.get_micro_file_name(), "MicroSimulation" + ), + "MicroSimulation", + ) for i in active_sim_ids: self._logger.info(f"lazy initialization of micro sim {i} started") self._micro_sims[i] = create_simulation_class(micro_problem)(