Skip to content

Commit

Permalink
Rework comment
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Jun 10, 2024
1 parent 18fbdec commit 0202253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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%}. "
Expand Down

0 comments on commit 0202253

Please sign in to comment.