Skip to content

Commit 5bb701a

Browse files
author
cpschau
committed
fix disabling of feature
1 parent da685c3 commit 5bb701a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Snakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ rule build_existing_chp_de:
590590
regions=resources("regions_onshore_base_s_{clusters}.geojson"),
591591
district_heating_subnodes=(
592592
resources("district_heating_subnodes_base_s_{clusters}.geojson")
593-
if config_provider("sector", "district_heating", "subnodes", "enable")
593+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
594594
else []
595595
),
596596
output:

rules/build_sector.smk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ rule build_temperature_profiles:
201201
pop_layout=resources("pop_layout_total.nc"),
202202
regions_onshore=(
203203
resources("regions_onshore_base-extended_s_{clusters}.geojson")
204-
if config_provider("sector", "district_heating", "subnodes", "enable")
204+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
205205
else resources("regions_onshore_base_s_{clusters}.geojson")
206206
),
207207
cutout=lambda w: input_cutout(
@@ -274,7 +274,7 @@ rule build_central_heating_temperature_profiles:
274274
temp_air_total=resources("temp_air_total_base_s_{clusters}.nc"),
275275
regions_onshore=(
276276
resources("regions_onshore_base-extended_s_{clusters}.geojson")
277-
if config_provider("sector", "district_heating", "subnodes", "enable")
277+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
278278
else resources("regions_onshore_base_s_{clusters}.geojson")
279279
),
280280
output:
@@ -322,7 +322,7 @@ rule build_geothermal_heat_potential:
322322
isi_heat_potentials="data/isi_heat_utilisation_potentials.xlsx",
323323
regions_onshore=(
324324
resources("regions_onshore_base-restricted_s_{clusters}.geojson")
325-
if config_provider("sector", "district_heating", "subnodes", "enable")
325+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
326326
else resources("regions_onshore_base_s_{clusters}.geojson")
327327
),
328328
lau_regions="data/lau_regions.zip",
@@ -369,7 +369,7 @@ rule build_cop_profiles:
369369
temp_air_total=resources("temp_air_total_base_s_{clusters}.nc"),
370370
regions_onshore=(
371371
resources("regions_onshore_base-extended_s_{clusters}.geojson")
372-
if config_provider("sector", "district_heating", "subnodes", "enable")
372+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
373373
else resources("regions_onshore_base_s_{clusters}.geojson")
374374
),
375375
output:

rules/solve_myopic.smk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rule add_existing_baseyear:
1919
resources(
2020
"networks/base-extended_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.nc"
2121
)
22-
if config_provider("sector", "district_heating", "subnodes", "enable")
22+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
2323
else resources(
2424
"networks/base_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.nc"
2525
)
@@ -38,7 +38,7 @@ rule add_existing_baseyear:
3838
resources(
3939
"existing_heating_distribution_base-extended_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.csv"
4040
)
41-
if config_provider("sector", "district_heating", "subnodes", "enable")
41+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
4242
else resources(
4343
"existing_heating_distribution_base_s_{clusters}_{planning_horizons}.csv"
4444
)
@@ -102,7 +102,7 @@ rule add_brownfield:
102102
resources(
103103
"networks/base-extended_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.nc"
104104
)
105-
if config_provider("sector", "district_heating", "subnodes", "enable")
105+
if config_provider("sector", "district_heating", "subnodes", "enable") == True
106106
else resources(
107107
"networks/base_s_{clusters}_{opts}_{sector_opts}_{planning_horizons}.nc"
108108
)

0 commit comments

Comments
 (0)