Skip to content

Commit

Permalink
Remove code pertaining to just in time initialization from function w…
Browse files Browse the repository at this point in the history
…hich is not related to it
  • Loading branch information
IshaanDesai committed Jan 20, 2025
1 parent a68f479 commit 9ba2ef7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions micro_manager/adaptivity/global_adaptivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,8 @@ def _update_inactive_sims(
]

sim_states_and_global_ids = []
for local_id, sim in enumerate(micro_sims):
if sim == None:
sim_states_and_global_ids.append((None, self._global_ids[local_id]))
else:
sim_states_and_global_ids.append((sim.get_state(), sim.get_global_id()))
for sim in micro_sims:
sim_states_and_global_ids.append((sim.get_state(), sim.get_global_id()))

recv_reqs = self._p2p_comm(
list(to_be_activated_map.keys()), sim_states_and_global_ids
Expand Down

0 comments on commit 9ba2ef7

Please sign in to comment.