From a0d0c1d27a82da45a99501ef69986d705dc45622 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Mon, 12 Jul 2021 11:51:34 +0200 Subject: [PATCH] Update export.py --- carculator_truck/export.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/carculator_truck/export.py b/carculator_truck/export.py index 3caf0b5..cd1bb18 100644 --- a/carculator_truck/export.py +++ b/carculator_truck/export.py @@ -845,8 +845,8 @@ def write_lci( if ( ecoinvent_compatibility - or ecoinvent_compatibility - and tuple_output[0] not in activities_to_be_removed + or (ecoinvent_compatibility == False + and tuple_output[0] not in activities_to_be_removed) ): string = "" @@ -1300,6 +1300,11 @@ def get_simapro_technosphere(self): return dict_tech def format_data_for_lci_for_bw2(self, data): + """ + Convert inventory data into a dictionary format that can be consumed by `brightway2`. + :param data: + :return: + """ rows = [] rows.extend((["Database", self.db_name], ("format", "Excel spreadsheet")))