Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_language_version:
repos:
# Generic 'file quality' testing
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
# Machine-friendliness
- id: trailing-whitespace
Expand All @@ -25,7 +25,7 @@ repos:

# Python file formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
rev: v0.15.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
6 changes: 4 additions & 2 deletions workflow/scripts/powerplants_get_inflow_mwh.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ def _estimate_bounded_powerplant_inflow(
f"Country data for {year} is not unique!"
)
annual_powerplant_mwh = plants_by_id.apply(
lambda x: annual_national_generation[x.country_id]
* national_cap_share_per_powerplant[x.name],
lambda x: (
annual_national_generation[x.country_id]
* national_cap_share_per_powerplant[x.name]
),
axis="columns",
)
hours_in_year = 366 * 24 if isleap(year) else 365 * 24
Expand Down
Loading