From 098ef87f4eba902ab9750cea9700f1eff75d4234 Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Tue, 3 Dec 2024 15:07:11 +0100 Subject: [PATCH] Correctly defining _logger variable in the Config class --- micro_manager/config.py | 1 + micro_manager/micro_manager.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/micro_manager/config.py b/micro_manager/config.py index 71855cb..e9ffa7a 100644 --- a/micro_manager/config.py +++ b/micro_manager/config.py @@ -22,6 +22,7 @@ def __init__(self, config_filename): config_filename : string Name of the JSON configuration file """ + self._logger = None self._micro_file_name = None self._config_file_name = None diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index 5cb7521..5c40093 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -88,7 +88,7 @@ def __init__(self, config_file: str) -> None: if self._is_adaptivity_on: self._adaptivity_logger = Logger( - "Adaptivity", "adaptivity_metrics.csv", self._rank, csv_logger=True + "Adaptivity", "adaptivity-metrics.csv", self._rank, csv_logger=True ) self._adaptivity_logger.log_info_one_rank( @@ -312,7 +312,7 @@ def solve(self) -> None: if self._is_adaptivity_on: if self._adaptivity_type == "local": - # Gather is necessary as local adaptivity only stores local data + # MPI Gather is necessary as local adaptivity only stores local data local_active_sims = np.count_nonzero(is_sim_active) global_active_sims = self._comm.gather(local_active_sims)