Skip to content

Commit

Permalink
Start simulation with all simulations active
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Jan 23, 2024
1 parent 6c08889 commit c69cd89
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,18 @@ def solve(self) -> None:
(self._number_of_sims_for_adaptivity,
self._number_of_sims_for_adaptivity))

# Start adaptivity calculation with all sims inactive
is_sim_active = np.array([False] * self._number_of_sims_for_adaptivity)
# Start adaptivity calculation with all sims as active
is_sim_active = np.array([True] * self._number_of_sims_for_adaptivity)

# Activate the first one (a random choice)
is_sim_active[0] = True
# is_sim_active[0] = True

# Associate all sims to the one active sim
sim_is_associated_to = np.zeros((self._number_of_sims_for_adaptivity), dtype=np.intc)
sim_is_associated_to[0] = -2 # An active sim does not have an associated sim
#sim_is_associated_to = np.zeros((self._number_of_sims_for_adaptivity), dtype=np.intc)
#sim_is_associated_to[0] = -2 # An active sim does not have an associated sim

# Associate all sims to the one active sim
sim_is_associated_to = np.full((self._number_of_sims_for_adaptivity), -2, dtype=np.intc)

similarity_dists_cp = None
is_sim_active_cp = None
Expand Down

0 comments on commit c69cd89

Please sign in to comment.