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

Backwards compatibility of .bw2package #289

Open
mrvisscher opened this issue Dec 6, 2024 · 0 comments
Open

Backwards compatibility of .bw2package #289

mrvisscher opened this issue Dec 6, 2024 · 0 comments

Comments

@mrvisscher
Copy link

# Compatibility with bw2data version 1

I can't seem to import .bw2package files from older Brightway versions. For my specific case I could enable backwards compatibility by adding the following lines to package.py.

if metadata["module"] == "bw2data.backends.peewee.database":
    metadata["module"] = "bw2data.backends.base"

I don't mind making a PR, but there are probably more edge-cases for which we need migration rules like these which I don't know of.

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