Skip to content

Commit 3c8324c

Browse files
committed
suffix default to .py
1 parent 03d7d2a commit 3c8324c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openevolve/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def __init__(
154154
self.evaluator = Evaluator(
155155
self.config.evaluator,
156156
evaluation_file,
157-
Path(self.initial_program_path).suffix,
158157
self.llm_evaluator_ensemble,
159158
self.evaluator_prompt_sampler,
160159
database=self.database,
160+
Path(self.initial_program_path).suffix,
161161
)
162162
self.evaluation_file = evaluation_file
163163

openevolve/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def __init__(
4141
self,
4242
config: EvaluatorConfig,
4343
evaluation_file: str,
44-
suffix: str,
4544
llm_ensemble: Optional[LLMEnsemble] = None,
4645
prompt_sampler: Optional[PromptSampler] = None,
4746
database: Optional[ProgramDatabase] = None,
47+
suffix: Optional[str]=".py",
4848
):
4949
self.config = config
5050
self.evaluation_file = evaluation_file

0 commit comments

Comments
 (0)