-
Notifications
You must be signed in to change notification settings - Fork 1
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
Documentation on how to import the json
file exported by bw_simapro_csv
into Brightway
#14
Comments
@vjousse Can you provide more detail on what kind of |
Oops sorry, I’ve opened the issue on the wrong repo. I was talking about the JSON exported by https://github.com/brightway-lca/bw_simapro_csv |
json
file into Brightwayjson
file exported by bw_simapro_csv
into Brightway
Sorry, I moved the issue, but can move it back if needed.
|
There is a mention of it in the documentation here: https://github.com/brightway-lca/bw_simapro_csv?tab=readme-ov-file#exporting-to-brightway
from pathlib import Path
from bw_simapro_csv import SimaProCSV
sp = SimaProCSV(Path("my SimaPro file.csv"))
sp.to_brightway(Path("my-export.json")) The code: https://github.com/brightway-lca/bw_simapro_csv/blob/main/bw_simapro_csv/main.py#L185 |
You don't need to export anything to JSON, just use SimaProBlockCSVImporter directly. |
Oh thanks for the tip! Should I submit a documentation PR for it in the |
There is a mention in the documentation of https://github.com/brightway-lca/bw_simapro_csv that the
json
file can be imported into Brightway usingbw2io
but I haven't found a way to do it.Is there a documentation somewhere about it?
Thanks for the awesome work!
The text was updated successfully, but these errors were encountered: