Skip to content

Commit 72f7367

Browse files
committed
fix tests
1 parent 1963d77 commit 72f7367

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openevolve/process_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def _submit_iteration(self, iteration: int, island_id: Optional[int] = None) ->
591591

592592
try:
593593
# Sample parent and inspirations from the target island
594-
parent, inspirations = self.database.sample(num_inspirations=_worker_config.prompt.num_top_programs)
594+
parent, inspirations = self.database.sample(num_inspirations=self.config.prompt.num_top_programs)
595595
finally:
596596
# Always restore original island state
597597
self.database.current_island = original_island

tests/test_island_isolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_island_isolation_during_evolution(self):
109109
# Track which islands were sampled
110110
sampled_islands = []
111111

112-
def mock_sample():
112+
def mock_sample(num_inspirations=None):
113113
# Record which island was sampled
114114
sampled_islands.append(self.database.current_island)
115115
# Return mock parent and inspirations

0 commit comments

Comments
 (0)