Skip to content

Conversation

tbuckworth
Copy link

Added backwards compatibility for loading models pickled under older versions.

Adds missing parameters with their default values.

See issue #700

tbuckworth and others added 2 commits August 21, 2024 10:33
Added backwards compatibility for loading models pickled under older versions.

Adds missing parameters with their default values.
Copy link
Owner

@MilesCranmer MilesCranmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I would like to have a unit test for this just so we can verify it works. Although I’m not immediately sure how to do that. Maybe there’s a way to have a separate Python process install an old version of PySR, run it, and then attempt to load the old model in the current code?

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.

2 participants