From f6130638187938eae36b9b285a666f150a0f8ca2 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Tue, 30 Jul 2024 12:43:50 +0000 Subject: [PATCH] Black reformating --- premise/activity_maps.py | 4 ++-- premise/report.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/premise/activity_maps.py b/premise/activity_maps.py index 1aefd478..ceb72dbe 100644 --- a/premise/activity_maps.py +++ b/premise/activity_maps.py @@ -384,7 +384,7 @@ def generate_sets_from_filters(self, filtr: dict, database=None) -> dict: # check if all keys have values # if not, print warning for key, val in mapping.items(): - if not val: - print(f"Warning: No activities found for {key} -- revise mapping.") + if not val: + print(f"Warning: No activities found for {key} -- revise mapping.") return mapping diff --git a/premise/report.py b/premise/report.py index 0bb693ba..76744e82 100644 --- a/premise/report.py +++ b/premise/report.py @@ -474,7 +474,6 @@ def generate_summary_report(scenarios: list, filename: Path) -> None: for scenario_idx, scenario in enumerate(scenarios): if (scenario["model"], scenario["pathway"]) not in scenario_list: - iam_data = fetch_data( iam_data=scenario["iam data"], sector=sector,