Skip to content

Commit 24bf0da

Browse files
author
yolo h8cker 93
committed
Fix matrix parallel processing
1 parent 96889de commit 24bf0da

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

codeclash/analysis/matrix.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,15 @@ def _create_dummy_agent(self, player_name: str, agent_suffix: str = "") -> Dummy
165165
# Create unique name for this agent instance
166166
original_config["name"] = f"{player_name}{agent_suffix}"
167167

168-
environment = self.game.get_environment(f"{self.game.game_id}.{original_config['name']}")
168+
game = self.game_pool[0]
169+
environment = game.get_environment(f"{game.game_id}.{original_config['name']}")
169170
game_context = GameContext(
170-
id=self.game.game_id,
171-
log_env=self.game.log_env,
172-
log_local=self.game.log_local,
173-
name=self.game.name,
171+
id=game.game_id,
172+
log_env=game.log_env,
173+
log_local=game.log_local,
174+
name=game.name,
174175
player_id=original_config["name"],
175-
prompts=self.config["prompts"],
176+
prompts=game.config["prompts"],
176177
round=0,
177178
rounds=self.rounds,
178179
working_dir=str(DIR_WORK),

0 commit comments

Comments
 (0)