Skip to content

Commit

Permalink
Correctly defining _logger variable in the Config class
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Dec 3, 2024
1 parent 907aac1 commit 098ef87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions micro_manager/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 098ef87

Please sign in to comment.