[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-02-17 17:35:52 +00:00
parent e898781fda
commit cc3d7a4cbb

View File

@ -419,7 +419,9 @@ rule add_electricity:
if config_provider("lines", "dynamic_line_rating", "activate")(w)
else resources("networks/base.nc")
),
tech_costs=lambda w: resources(f"costs_{config_provider('costs', 'year')(w)}.csv"),
tech_costs=lambda w: resources(
f"costs_{config_provider('costs', 'year')(w)}.csv"
),
regions=resources("regions_onshore.geojson"),
powerplants=resources("powerplants.csv"),
hydro_capacities=ancient("data/bundle/hydro_capacities.csv"),
@ -462,7 +464,9 @@ rule simplify_network:
costs=config_provider("costs"),
input:
network=resources("networks/elec.nc"),
tech_costs=lambda w: resources(f"costs_{config_provider('costs', 'year')(w)}.csv"),
tech_costs=lambda w: resources(
f"costs_{config_provider('costs', 'year')(w)}.csv"
),
regions_onshore=resources("regions_onshore.geojson"),
regions_offshore=resources("regions_offshore.geojson"),
output:
@ -509,7 +513,9 @@ rule cluster_network:
if config_provider("enable", "custom_busmap", default=False)(w)
else []
),
tech_costs=lambda w: resources(f"costs_{config_provider('costs', 'year')(w)}.csv"),
tech_costs=lambda w: resources(
f"costs_{config_provider('costs', 'year')(w)}.csv"
),
output:
network=resources("networks/elec_s{simpl}_{clusters}.nc"),
regions_onshore=resources("regions_onshore_elec_s{simpl}_{clusters}.geojson"),
@ -536,7 +542,9 @@ rule add_extra_components:
costs=config_provider("costs"),
input:
network=resources("networks/elec_s{simpl}_{clusters}.nc"),
tech_costs=lambda w: resources(f"costs_{config_provider('costs', 'year')(w)}.csv"),
tech_costs=lambda w: resources(
f"costs_{config_provider('costs', 'year')(w)}.csv"
),
output:
resources("networks/elec_s{simpl}_{clusters}_ec.nc"),
log:
@ -568,7 +576,9 @@ rule prepare_network:
autarky=config_provider("electricity", "autarky", default={}),
input:
resources("networks/elec_s{simpl}_{clusters}_ec.nc"),
tech_costs=lambda w: resources(f"costs_{config_provider('costs', 'year')(w)}.csv"),
tech_costs=lambda w: resources(
f"costs_{config_provider('costs', 'year')(w)}.csv"
),
co2_price=lambda w: resources("co2_price.csv") if "Ept" in w.opts else [],
output:
resources("networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc"),