Skip to content

Commit 67aca71

Browse files
authored
Merge pull request #382 from zigzagcai/fix-logging
fix(logging): fix logging bug in reject sampling
2 parents 75bc298 + 336e7eb commit 67aca71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openevolve/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,8 @@ def _is_novel(self, program_id: int, island_idx: int) -> bool:
10671067
other = self.programs[pid]
10681068

10691069
if other.embedding is None:
1070-
logger.log(
1071-
"Warning: Program %s has no embedding, skipping similarity check", other.id
1070+
logger.warning(
1071+
f"Program {other.id} has no embedding, skipping similarity check"
10721072
)
10731073
continue
10741074

0 commit comments

Comments
 (0)