add_existing_baseyear.py: Style improvement

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
This commit is contained in:
lisazeyen 2022-03-17 18:15:14 +01:00 committed by GitHub
parent c40904a727
commit aed81940b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
# to consider electricity grid connection costs or a split between # to consider electricity grid connection costs or a split between
# solar utility and rooftop as well, rather take cost assumptions # solar utility and rooftop as well, rather take cost assumptions
# from existing network than from the cost database # from existing network than from the cost database
capital_cost = n.generators[n.generators.carrier==generator+suffix].capital_cost.mean() capital_cost = n.generators.loc[n.generators.carrier==generator+suffix, "capital_cost"].mean()
if 'm' in snakemake.wildcards.clusters: if 'm' in snakemake.wildcards.clusters: