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

Store GUFE version information when serializing to/from dictionary #472

Open
IAlibay opened this issue Jan 28, 2025 · 0 comments
Open

Store GUFE version information when serializing to/from dictionary #472

IAlibay opened this issue Jan 28, 2025 · 0 comments

Comments

@IAlibay
Copy link
Member

IAlibay commented Jan 28, 2025

Use case

It would be really useful to know what version of gufe a JSON was written with so that you can easily say "if I load it back with this version of gufe and compatible version of openfe/feflow/whatever-else then it should work".

The proposal

We store the gufe.__version__ when calling to_dict.

This is done at to_dict call no matter what the gufe version is, i.e. if you load an old JSON file serialized with an old version of gufe, and it works in a new version of gufe and you then to_dict again, then the new version of gufe is written out to the JSON file.

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

No branches or pull requests

1 participant