-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ecobalyse-private: object-export-ccomb ## 🔧 Problem We copy/paste impacts for object domain -> no traceability ## 🍰 Solution Compute and export impacts for object like we do for food ## 🏝️ How to test in ecobalyse/data execute `make export_food` check that there isn't any diff ecobalyse-private: object-export-ccomb --------- Co-authored-by: paulboosz <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,275 additions
and
1,302 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Please only pure functions here | ||
|
||
from copy import deepcopy | ||
|
||
from frozendict import frozendict | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
|
||
import bw2data | ||
from common.import_ import add_created_activities | ||
|
||
if __name__ == "__main__": | ||
"""Add additional processes""" | ||
|
||
if "Ecobalyse" in bw2data.databases: | ||
del bw2data.databases["Ecobalyse"] | ||
|
||
if (db := "Ecobalyse") not in bw2data.databases: | ||
for vertical in ("object", "food", "textile"): | ||
file = f"{vertical}/activities_to_create.json" | ||
if os.path.exists(file): | ||
add_created_activities(db, file) | ||
else: | ||
print(f"{db} already imported") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ pandas>=2.0, <2.1 | |
scipy>=1.11, <1.12 | ||
uvicorn | ||
xlrd>=2.0, <2.1 | ||
loguru>=0.7.2, <0.8 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"id": "07e9e916-e02b-45e2-a298-2b5084de6242", | ||
"name": "sawnwood, board, hardwood, dried (u=10%), planed//[Europe without Switzerland] market for sawnwood, board, hardwood, dried (u=10%), planed", | ||
"displayName": "Planche (bois de feuillus)", | ||
"density": 600, | ||
"unit": "m3", | ||
"source": "Ecoinvent 3.9.1", | ||
"comment": "" | ||
}, | ||
{ | ||
"id": "3295b2a5-328a-4c00-b046-e2ddeb0da823", | ||
"name": "polypropylene product/RER constructed by Ecobalyse", | ||
"displayName": "Composant en plastique (PP)", | ||
"density": 900, | ||
"unit": "kg", | ||
"source": "Ecobalyse", | ||
"comment": "modélisation d'un composant générique (voir documentation)" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"alias": "plastic-product-pp", | ||
"search_in": "Ecoinvent 3.9.1", | ||
"search": "polypropylene product/RER", | ||
"suffix": "constructed by Ecobalyse", | ||
"subactivities": [], | ||
"add": { | ||
"polypropylene, granulate//[RER] polypropylene production, granulate": 1.01, | ||
"injection moulding//[RER] injection moulding": 1.01 | ||
} | ||
} | ||
] |
Oops, something went wrong.