Skip to content

Commit

Permalink
Fix myopic test
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-f committed Jul 18, 2024
1 parent d994d10 commit 299c0ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -842,10 +842,10 @@ if config["foresight"] == "myopic":
input:
network=RDIR
+ "/prenetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
powerplants=pypsaearth("resources/powerplants.csv"),
busmap_s=pypsaearth("resources/bus_regions/busmap_elec_s{simpl}.csv"),
powerplants=pypsaearth("resources/" + RDIR_PE + "powerplants.csv"),
busmap_s=pypsaearth("resources/" + RDIR_PE + "bus_regions/busmap_elec_s{simpl}.csv"),
busmap=pypsaearth(
"resources/bus_regions/busmap_elec_s{simpl}_{clusters}.csv"
"resources/" + RDIR_PE + "bus_regions/busmap_elec_s{simpl}_{clusters}.csv"
),
clustered_pop_layout="resources/population_shares/pop_layout_elec_s{simpl}_{clusters}_{planning_horizons}.csv",
costs=CDIR
Expand Down Expand Up @@ -876,7 +876,7 @@ if config["foresight"] == "myopic":
def input_profile_tech_brownfield(w):
return {
f"profile_{tech}": pypsaearth(
f"resources/renewable_profiles/profile_{tech}.nc"
f"resources/" + RDIR_PE + "renewable_profiles/profile_{tech}.nc"
)
for tech in config["electricity"]["renewable_carriers"]
if tech != "hydro"
Expand Down Expand Up @@ -905,10 +905,10 @@ if config["foresight"] == "myopic":
# drop_leap_day=config["enable"]["drop_leap_day"],
carriers=config["electricity"]["renewable_carriers"],
input:
unpack(input_profile_tech_brownfield),
simplify_busmap=pypsaearth("resources/bus_regions/busmap_elec_s{simpl}.csv"),
# unpack(input_profile_tech_brownfield),
simplify_busmap=pypsaearth("resources/" + RDIR_PE + "bus_regions/busmap_elec_s{simpl}.csv"),
cluster_busmap=pypsaearth(
"resources/bus_regions/busmap_elec_s{simpl}_{clusters}.csv"
"resources/" + RDIR_PE + "bus_regions/busmap_elec_s{simpl}_{clusters}.csv"
),
network=RDIR
+ "/prenetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
Expand Down
2 changes: 1 addition & 1 deletion test/config.test_myopic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run:
foresight: myopic

# option to disable the subworkflow to ease the analyses
disable_subworkflow: false
disable_subworkflow: true

scenario:
simpl: # only relevant for PyPSA-Eur
Expand Down

0 comments on commit 299c0ee

Please sign in to comment.