Skip to content

Commit

Permalink
Link some processes to AGB by setting the real AGB name
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomb committed Nov 25, 2024
1 parent 51e8f0a commit d69997e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions data/import_food.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,43 @@
},
}
]
PASTOECO_MIGRATIONS = [
{
"name": "pastoeco-technosphere-fixes",
"description": "Fixes to ease linking to agb",
"data": {
"fields": ("name",),
"data": [
(
("Diesel {Europe without Switzerland}| market for | Cut-off, S",),
{
"name": "Diesel {Europe without Switzerland}| market for | Cut-off, S - Copied from Ecoinvent U"
},
),
(
("Petrol, two-stroke blend {GLO}| market for | Cut-off, S",),
{
"name": "Petrol, two-stroke blend {GLO}| market for | Cut-off, S - Copied from Ecoinvent U"
},
),
(
(
"Tap water {Europe without Switzerland}| market for | Cut-off, S",
),
{
"name": "Tap water {Europe without Switzerland}| market for | Cut-off, S - Copied from Ecoinvent U"
},
),
(
("Electricity, low voltage {FR}| market for | Cut-off, S",),
{
"name": "Electricity, low voltage {FR}| market for | Cut-off, S - Copied from Ecoinvent U"
},
),
],
},
}
]


def remove_azadirachtine(db):
Expand Down Expand Up @@ -233,6 +270,7 @@ def remove_some_processes(db):
import_simapro_csv(
join("..", "..", "dbfiles", PASTOECO),
db,
migrations=PASTOECO_MIGRATIONS,
excluded_strategies=EXCLUDED,
other_strategies=[
functools.partial(
Expand Down

0 comments on commit d69997e

Please sign in to comment.