From 032521d8634788dcf662af9c1ddf4db3bcd3f430 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Sat, 7 Oct 2023 19:05:33 +0000 Subject: [PATCH] Black reformating --- premise/data_collection.py | 4 +++- premise/report.py | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/premise/data_collection.py b/premise/data_collection.py index 4662688b..43a362b5 100644 --- a/premise/data_collection.py +++ b/premise/data_collection.py @@ -874,7 +874,9 @@ def get_iam_efficiencies( # efficiency expressed eff_data /= eff_data.sel(year=2020) - if len(efficiency_labels) == 0 or any("specific" in x.lower() for x in efficiency_labels.values()): + if len(efficiency_labels) == 0 or any( + "specific" in x.lower() for x in efficiency_labels.values() + ): # we are dealing with specific energy consumption, not efficiencies # we need to convert them to efficiencies eff_data = 1 / eff_data diff --git a/premise/report.py b/premise/report.py index ab9b44a0..dced5b6b 100644 --- a/premise/report.py +++ b/premise/report.py @@ -296,8 +296,7 @@ def generate_summary_report(scenarios: list, filename: Path) -> None: variables = get_variables(filepath["filepath"]) if "filter" in filepath: variables = [ - x for x in variables - if any(y in x for y in filepath["filter"]) + x for x in variables if any(y in x for y in filepath["filter"]) ] worksheet = workbook.create_sheet(sector)