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)