Skip to content

Commit

Permalink
fix bug in assigning process
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuzka committed Dec 4, 2023
1 parent 78ae36d commit 06bdc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popy/pop_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def make_it_a_list_if_it_is_no_list(x):
# if agents are not assigned and all locations are full
if not assigned and location_dummy.allow_overcrowding:
# sort by the number of assigned agents
group_lists.sort(key=lambda x: x.len())
group_lists.sort(key=lambda x: len(x))

# assign agents to the group_list with the fewest members
for agent in sticky_agents:
Expand Down

0 comments on commit 06bdc33

Please sign in to comment.