[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e898781fda
commit
cc3d7a4cbb
@ -419,7 +419,9 @@ rule add_electricity:
|
|||||||
if config_provider("lines", "dynamic_line_rating", "activate")(w)
|
if config_provider("lines", "dynamic_line_rating", "activate")(w)
|
||||||
else resources("networks/base.nc")
|
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"),
|
regions=resources("regions_onshore.geojson"),
|
||||||
powerplants=resources("powerplants.csv"),
|
powerplants=resources("powerplants.csv"),
|
||||||
hydro_capacities=ancient("data/bundle/hydro_capacities.csv"),
|
hydro_capacities=ancient("data/bundle/hydro_capacities.csv"),
|
||||||
@ -462,7 +464,9 @@ rule simplify_network:
|
|||||||
costs=config_provider("costs"),
|
costs=config_provider("costs"),
|
||||||
input:
|
input:
|
||||||
network=resources("networks/elec.nc"),
|
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_onshore=resources("regions_onshore.geojson"),
|
||||||
regions_offshore=resources("regions_offshore.geojson"),
|
regions_offshore=resources("regions_offshore.geojson"),
|
||||||
output:
|
output:
|
||||||
@ -509,7 +513,9 @@ rule cluster_network:
|
|||||||
if config_provider("enable", "custom_busmap", default=False)(w)
|
if config_provider("enable", "custom_busmap", default=False)(w)
|
||||||
else []
|
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:
|
output:
|
||||||
network=resources("networks/elec_s{simpl}_{clusters}.nc"),
|
network=resources("networks/elec_s{simpl}_{clusters}.nc"),
|
||||||
regions_onshore=resources("regions_onshore_elec_s{simpl}_{clusters}.geojson"),
|
regions_onshore=resources("regions_onshore_elec_s{simpl}_{clusters}.geojson"),
|
||||||
@ -536,7 +542,9 @@ rule add_extra_components:
|
|||||||
costs=config_provider("costs"),
|
costs=config_provider("costs"),
|
||||||
input:
|
input:
|
||||||
network=resources("networks/elec_s{simpl}_{clusters}.nc"),
|
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:
|
output:
|
||||||
resources("networks/elec_s{simpl}_{clusters}_ec.nc"),
|
resources("networks/elec_s{simpl}_{clusters}_ec.nc"),
|
||||||
log:
|
log:
|
||||||
@ -568,7 +576,9 @@ rule prepare_network:
|
|||||||
autarky=config_provider("electricity", "autarky", default={}),
|
autarky=config_provider("electricity", "autarky", default={}),
|
||||||
input:
|
input:
|
||||||
resources("networks/elec_s{simpl}_{clusters}_ec.nc"),
|
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 [],
|
co2_price=lambda w: resources("co2_price.csv") if "Ept" in w.opts else [],
|
||||||
output:
|
output:
|
||||||
resources("networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc"),
|
resources("networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc"),
|
||||||
|
Loading…
Reference in New Issue
Block a user