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

Add Refl1D migration between schemas #241

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Conversation

bmaranville
Copy link
Member

  • Adds a specific migration function to migrate models written before the restructure change to the new class layout.
  • Also adds the infrastructure to support further migrations.

In the future, if a breaking change is made which will affect the serialized output, the version number in refl1d.__schema_version__ can be incremented, and a new function added to the lookup table that will migrate the old JSON structure to one compatible with the new.

@bmaranville
Copy link
Member Author

Note: won't actually do anything unless PR bumps/bumps#204 is merged first.

@bmaranville bmaranville merged commit 67bf272 into master Dec 13, 2024
12 checks passed
@bmaranville bmaranville deleted the migrate-serialized branch December 13, 2024 19:24
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