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

refactor: Switch to brightway #822

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ec8b69f
switch to brightway
ccomb Nov 6, 2024
b5401f9
new export
ccomb Nov 6, 2024
f9c3b6f
adapted tests
ccomb Nov 6, 2024
2623153
changed precision
ccomb Nov 6, 2024
59384f5
precision
ccomb Nov 6, 2024
e12da99
adapted tests
ccomb Nov 6, 2024
5425c6d
precision
ccomb Nov 6, 2024
24e2196
adapted tests
ccomb Nov 6, 2024
e31eeb0
adapted tests
ccomb Nov 6, 2024
f4bacfc
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into switch_to…
ccomb Nov 6, 2024
8996060
new export
ccomb Nov 7, 2024
31b6e4c
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into switch_to…
ccomb Nov 25, 2024
162d744
new export
ccomb Nov 26, 2024
82dc8e2
adapt tests
ccomb Nov 26, 2024
175fecb
missing simapro project for WFLDB
ccomb Nov 26, 2024
8e2e81e
reconstruct the right process name in simapro
ccomb Nov 26, 2024
cd29374
link to unit process by changing the name
ccomb Nov 26, 2024
d4349b1
patch AGB3 and not CTCPA
ccomb Nov 26, 2024
b6c0aa1
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into switch_to…
ccomb Dec 5, 2024
d4c47c4
change simapro project
ccomb Dec 5, 2024
dd96e57
don't cache empty results
ccomb Dec 5, 2024
53f9cd5
use loguru
ccomb Dec 5, 2024
3827125
hack because the open project seems different than the library project
ccomb Dec 5, 2024
6ceed80
don't fail if the spapi returns a string
ccomb Dec 5, 2024
dc5056a
use the name, not the displayName
ccomb Dec 9, 2024
f0ac02a
use only normalization when displaying comparison graphs
ccomb Dec 12, 2024
6983b84
avoid needing escaping the db name
ccomb Dec 12, 2024
bf82cc2
improve biosphere to get a better ETC
ccomb Dec 12, 2024
dab2883
split comment line
ccomb Dec 12, 2024
99f10c8
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into switch_to…
ccomb Dec 18, 2024
7a65646
stop on unlinked activities
ccomb Dec 18, 2024
5840241
Merge branch 'master' of github.com:MTES-MCT/ecobalyse into switch_to…
ccomb Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/common/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def compute_impacts(frozen_processes, default_db, impacts_py):
if not activity:
raise Exception(f"This process was not found in brightway: {process}")

results = compute_simapro_impacts(activity, main_method, impacts_py)
results = None # compute_simapro_impacts(activity, main_method, impacts_py)
# WARNING assume remote is in m3 or MJ (couldn't find unit from COM intf)
if process["unit"] == "kWh" and isinstance(results, dict):
results = {k: v * 3.6 for k, v in results.items()}
Expand Down
Loading