From 0202253daa9fe0323dca5d9eee6757050bce10ea Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Mon, 10 Jun 2024 14:44:04 +0200 Subject: [PATCH] Rework comment --- micro_manager/micro_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index 68adc28..e18c382 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -133,9 +133,8 @@ def solve(self) -> None: (self._number_of_sims_for_adaptivity), -2, dtype=np.intc ) - # If micro simulations have been initialized, compute adaptivity based on initial data + # If micro simulations have been initialized, compute adaptivity before starting the coupling if self._micro_sims_init: - # Compute adaptivity based on initial data of micro sims ( similarity_dists, is_sim_active, @@ -248,6 +247,7 @@ def solve(self) -> None: ) else: crash_ratio = np.sum(self._has_sim_crashed) / len(self._has_sim_crashed) + if crash_ratio > self._crash_threshold: self._logger.info( "{:.1%} of the micro simulations have crashed exceeding the threshold of {:.1%}. "