Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 8, 2023
2 parents 19f1d8e + 032521d commit 1215dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion premise/data_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions premise/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1215dbf

Please sign in to comment.