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

Patch for reading mepo1 state #279

Merged
merged 2 commits into from
May 1, 2024
Merged

Conversation

pchakraborty
Copy link
Collaborator

@pchakraborty pchakraborty commented Apr 30, 2024

mepo1 to mepo2 transition includes a renaming of directories (mepo.d -> src/mepo). Since pickle requires that

the class definition must be importable and live in the same module as when the object was stored

we need to patch sys.modules to be able to read mepo1 state (https://stackoverflow.com/a/2121886)

@pchakraborty pchakraborty requested a review from a team as a code owner April 30, 2024 14:42
@pchakraborty pchakraborty added the Skip Changelog Skips the Changelog Enforcer label Apr 30, 2024
@mathomp4 mathomp4 merged commit 1afb682 into develop May 1, 2024
13 checks passed
@mathomp4 mathomp4 deleted the hotfix/pchakrab/pickle-patch branch May 1, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Skips the Changelog Enforcer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants