Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made from_file pickle loading more robust #702

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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