Skip to content

Commit

Permalink
fix bug where initial condition propotional was only using the popula…
Browse files Browse the repository at this point in the history
…tion of a single subpop
  • Loading branch information
jcblemai committed Feb 10, 2024
1 parent 322a74f commit dbad734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flepimop/gempyor_pkg/src/gempyor/seeding_ic.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def draw(self, sim_id: int, setup) -> np.ndarray:

if "proportional" in self.initial_conditions_config.keys():
if self.initial_conditions_config["proportional"].get():
y0 = y0 * setup.subpop_pop[pl_idx]
y0 = y0 * setup.subpop_pop

# check that the inputed values sums to the subpop population:
error = False
Expand Down

0 comments on commit dbad734

Please sign in to comment.