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

Attribute "formula" is lost when loading bw database with wurst #37

Open
TitouanGreffe opened this issue Oct 29, 2024 · 1 comment
Open

Comments

@TitouanGreffe
Copy link

TitouanGreffe commented Oct 29, 2024

When loading a bw database with wurst, the attribute "formula" of a technosphere (or biosphere) exchange is not retrieved and so only the raw value in the "amount" attribute is kept. Not sure if the concerned functions are add_input_info_for_indigenous_exchanges or rather extract_exchange where attribute 'formula' is not present yet (in extract_database.py).
@cmutel : Would it be possible to fix this issue to be able to keep formulas?

@TitouanGreffe
Copy link
Author

I tried to add in extract_exchange function : data["formula"] = proxy.data.get("formula") but then it paste the string of the formula and not parameters in the formula

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