Skip to content

Conversation

@codelion
Copy link
Member

@codelion codelion commented Jun 20, 2025

Updated Program.from_dict to ignore dictionary keys that do not correspond to dataclass fields, preventing errors from unexpected data. Added debug logging to indicate when unsupported fields are filtered out.

fixes #88

codelion added 2 commits June 21, 2025 07:13
Updated Program.from_dict to ignore dictionary keys that do not correspond to dataclass fields, preventing errors from unexpected data. Added debug logging to indicate when unsupported fields are filtered out.
Cleaned up whitespace in the Program.from_dict method for improved code readability. No functional changes were made.
@codelion codelion merged commit 89f9094 into main Jun 20, 2025
3 of 5 checks passed
@codelion codelion deleted the fix-prompts-checkpoint-loading branch June 20, 2025 23:28
0x0f0f0f pushed a commit to 0x0f0f0f/openevolve that referenced this pull request Jul 7, 2025
…prompts-checkpoint-loading

Filter unsupported fields in Program.from_dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing "prompts" field in class Program cause issue when loading from checkpoint

2 participants