diff --git a/data/common/import_.py b/data/common/import_.py index 1f144883e..061ca0078 100644 --- a/data/common/import_.py +++ b/data/common/import_.py @@ -224,13 +224,13 @@ def import_simapro_csv( print("### Applying strategies...") # exclude strategies/migrations database.strategies = ( - first_strategies + list(first_strategies) + [ s for s in database.strategies if not any([e in repr(s) for e in excluded_strategies]) ] - + other_strategies + + list(other_strategies) ) database.apply_strategies() diff --git a/data/import_ecoinvent.py b/data/import_ecoinvent.py index 6a59d4b77..f49d8e7c3 100755 --- a/data/import_ecoinvent.py +++ b/data/import_ecoinvent.py @@ -20,6 +20,33 @@ ] +def organic_cotton_irrigation(db): + """add irrigation to the organic cotton""" + for ds in db: + if ds.get("simapro metadata", {}).get("Process identifier") in ( + "MTE00149000081182217968", # EI 3.9.1 + "EI3ARUNI000011519618166", # EI 3.10 + ): + # add: irrigation//[IN] market for irrigation;m3;0.75;Undefined;0;0;0;; + ds["exchanges"].append( + { + "amount": 0.75, + "categories": ("Materials/fuels",), + "comment": "", + "loc": 0.75, + "name": "irrigation//[IN] market for irrigation", + "negative": False, + "type": "technosphere", + "uncertainty type": 2, + "unit": "cubic meter", + } + ) + return db + + +STRATEGIES = [organic_cotton_irrigation] + + def main(): projects.set_current(PROJECT) # projects.create_project(PROJECT, activate=True, exist_ok=True) @@ -31,6 +58,7 @@ def main(): import_simapro_csv( join("..", "..", "dbfiles", EI391), db, + first_strategies=STRATEGIES, excluded_strategies=EXCLUDED, ) else: @@ -40,6 +68,7 @@ def main(): import_simapro_csv( join("..", "..", "dbfiles", EI310), db, + first_strategies=STRATEGIES, excluded_strategies=EXCLUDED, ) diff --git a/data/textile/activities.json b/data/textile/activities.json index ca48297d9..9279d03a4 100644 --- a/data/textile/activities.json +++ b/data/textile/activities.json @@ -586,7 +586,8 @@ { "displayName": "Production de fibres de coton bio", "info": "Textile > Matières > Matières naturelles", - "source": "Custom", + "source": "Ecoinvent 3.9.1", + "search": "fibre, cotton, organic//[RoW] fibre production, cotton, organic, ginning", "correctif": "", "step_usage": "Matières", "uuid": "coton-bio", @@ -603,30 +604,7 @@ "geographicOrigin": "Asie - Pacifique", "defaultCountry": "CN", "priority": 100, - "unit": "kg", - "impacts": { - "acd": 0.0306797, - "cch": 0.680164, - "etf": 5.1314, - "etf-c": 5.2637, - "fru": 1.65306, - "fwe": 0.0121382, - "htc": 5.32889e-9, - "htc-c": 6.73849e-11, - "htn": -2.36397e-7, - "htn-c": 3.03781e-10, - "ior": 0.0037548, - "ldu": 696.27, - "mru": 9.15075e-7, - "ozd": 1.15859e-9, - "pco": 0.0042632, - "pma": 1.97418e-7, - "swe": 0.0813382, - "tre": 0.1392, - "wtu": 32.2334, - "ecs": 618.962439739018, - "pef": 736.2192841211813 - } + "unit": "kg" }, { "displayName": "Production de chanvre", diff --git a/public/data/textile/processes.json b/public/data/textile/processes.json index 2a1d1835c..ef0a4e0ec 100644 --- a/public/data/textile/processes.json +++ b/public/data/textile/processes.json @@ -1102,11 +1102,11 @@ "alias": null }, { - "name": "Production de fibres de coton bio", + "name": "fibre, cotton, organic//[RoW] fibre production, cotton, organic, ginning", "displayName": "Production de fibres de coton bio", "info": "Textile > Matières > Matières naturelles", "unit": "kg", - "source": "Custom", + "source": "Ecoinvent 3.9.1", "correctif": "", "step_usage": "Matières", "uuid": "coton-bio", @@ -1130,8 +1130,8 @@ "swe": 0, "tre": 0, "wtu": 0, - "ecs": 618.9624397390182, - "pef": 736.2192841211813 + "ecs": 421.8780180420624, + "pef": 488.6208132830078 }, "heat_MJ": 0, "elec_pppm": 0,