Skip to content

Commit 0ac6bc4

Browse files
committed
Update process_parallel.py
1 parent 12cacc7 commit 0ac6bc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openevolve/process_parallel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,12 @@ def _run_iteration_worker(
274274
class ProcessParallelController:
275275
"""Controller for process-based parallel evolution"""
276276

277-
def __init__(self, config: Config, evaluation_file: str, database: ProgramDatabase, evolution_tracer=None):
277+
def __init__(self, config: Config, evaluation_file: str, database: ProgramDatabase, evolution_tracer=None, file_suffix: str = ".py"):
278278
self.config = config
279279
self.evaluation_file = evaluation_file
280280
self.database = database
281281
self.evolution_tracer = evolution_tracer
282+
self.file_suffix = file_suffix
282283

283284
self.executor: Optional[ProcessPoolExecutor] = None
284285
self.shutdown_event = mp.Event()
@@ -326,6 +327,7 @@ def _serialize_config(self, config: Config) -> dict:
326327
"diff_based_evolution": config.diff_based_evolution,
327328
"max_code_length": config.max_code_length,
328329
"language": config.language,
330+
"file_suffix": self.file_suffix,
329331
}
330332

331333
def start(self) -> None:

0 commit comments

Comments
 (0)