Skip to content

Commit

Permalink
Fix clean_up_20 to use the correct puppet bot.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 650010429
Change-Id: Ie0765ee3e8b0017790ac152e17ea86b3878c3449
  • Loading branch information
duenez authored and copybara-github committed Jul 7, 2024
1 parent 76104ec commit bd6a547
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions meltingpot/configs/bots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,23 @@ def puppet(*,
niceness_period=200,
),
),
clean_up__puppet_sanctioning_alternator_0=puppet(
substrate='clean_up',
model='puppet_3_goals_0',
roles=('default',),
puppeteer_builder=functools.partial(
clean_up.SanctionerAlternator,
cooperate_goal=_PUPPET_GOALS['clean_up_3_goals']['CLEAN'],
defect_goal=_PUPPET_GOALS['clean_up_3_goals']['EAT'],
sanction_goal=_PUPPET_GOALS['clean_up_3_goals']['SANCTION'],
num_others_cooperating_cumulant='NUM_OTHERS_WHO_CLEANED_THIS_STEP',
threshold=2,
recency_window=50,
steps_to_sanction_when_motivated=100,
alternating_steps=200,
nice=False,
),
),
clean_up__puppet_sanctioning_alternator_nice_0=puppet(
substrate='clean_up',
model='puppet_3_goals_0',
Expand Down
2 changes: 1 addition & 1 deletion meltingpot/configs/scenarios/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ def __post_init__(self):
is_focal=(False,) + (True,) * 6, # Reversed is_focal for variety.
bots_by_role={
'default': {
'clean_up__puppet_sanctioning_alternator_nice_0',
'clean_up__puppet_sanctioning_alternator_0',
},
},
),
Expand Down

0 comments on commit bd6a547

Please sign in to comment.