Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 7, 2024
1 parent c24b7f6 commit 5168b3f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/add_existing_baseyear.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,9 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas

# this is for the year 2020
if not already_build.empty:
n.generators.loc[already_build, "p_nom"] = \
n.generators.loc[already_build, "p_nom_min"] = \
capacity.loc[
already_build.str.replace(name_suffix, "")
].values
n.generators.loc[already_build, "p_nom"] = n.generators.loc[
already_build, "p_nom_min"
] = capacity.loc[already_build.str.replace(name_suffix, "")].values
new_capacity = capacity.loc[new_build.str.replace(name_suffix, "")]

if "m" in snakemake.wildcards.clusters:
Expand Down

0 comments on commit 5168b3f

Please sign in to comment.