From c716df8d4ad1594cf92eed367f0e44919686b182 Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Mon, 16 Dec 2024 18:05:54 +0100 Subject: [PATCH] Pass rank to the LocalAdaptivityCalculator definition --- micro_manager/micro_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index cc4a6df..2ad09d4 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -17,7 +17,6 @@ import sys import time import inspect -from copy import deepcopy from typing import Dict from warnings import warn from typing import Callable @@ -412,7 +411,7 @@ def initialize(self) -> None: if self._config.get_adaptivity_type() == "local": self._adaptivity_controller: LocalAdaptivityCalculator = ( LocalAdaptivityCalculator( - self._config, self._comm, self._local_number_of_sims + self._config, self._rank, self._comm, self._local_number_of_sims ) ) elif self._config.get_adaptivity_type() == "global":