Skip to content

Commit 24e88b1

Browse files
committed
do not force a judge when we pass None judge engine
1 parent 4a8c141 commit 24e88b1

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

  • are/simulation/scenarios/scenario_imported_from_json

are/simulation/scenarios/scenario_imported_from_json/utils.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,16 @@ def preprocess_scenario_from_config(
381381
# Preprocess the scenario
382382
if not config.oracle:
383383
# Create judge configuration using provided parameters
384-
from are.simulation.validation.configs import (
385-
GraphPerEventJudgeConfig,
386-
create_judge_engine,
387-
)
388-
389-
judge_engine = create_judge_engine(config.judge_engine_config)
384+
# If judge_engine_config is None, skip judge creation entirely
385+
judge_config = None
386+
if config.judge_engine_config is not None:
387+
from are.simulation.validation.configs import (
388+
create_judge_engine,
389+
GraphPerEventJudgeConfig,
390+
)
390391

391-
judge_config = GraphPerEventJudgeConfig(engine=judge_engine)
392+
judge_engine = create_judge_engine(config.judge_engine_config)
393+
judge_config = GraphPerEventJudgeConfig(engine=judge_engine)
392394

393395
preprocess_scenario(
394396
scenario=scenario,

0 commit comments

Comments
 (0)