Skip to content

Commit

Permalink
Add directory command to input overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-f committed Jan 16, 2025
1 parent 0a3cd17 commit fe7dfbf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ rule add_extra_components:
params:
transmission_efficiency=config["sector"]["transmission_efficiency"],
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
network="networks/" + RDIR + "elec_s{simpl}_{clusters}.nc",
tech_costs=COSTS,
output:
Expand Down Expand Up @@ -812,7 +812,7 @@ if config["monte_carlo"]["options"].get("add_to_snakefile", False) == False:
solving=config["solving"],
augmented_line_connection=config["augmented_line_connection"],
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
network="networks/" + RDIR + "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
output:
"results/" + RDIR + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
Expand Down Expand Up @@ -879,7 +879,7 @@ if config["monte_carlo"]["options"].get("add_to_snakefile", False) == True:
solving=config["solving"],
augmented_line_connection=config["augmented_line_connection"],
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
network="networks/"
+ RDIR
+ "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{unc}.nc",
Expand Down Expand Up @@ -1084,7 +1084,7 @@ rule prepare_sector_network:
nodal_transport_data="resources/"
+ SECDIR
+ "demand/nodal_transport_data_{demand}_s{simpl}_{clusters}_{planning_horizons}.csv",
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
clustered_pop_layout="resources/"
+ SECDIR
+ "population_shares/pop_layout_elec_s{simpl}_{clusters}_{planning_horizons}.csv",
Expand Down Expand Up @@ -1159,7 +1159,7 @@ rule add_export:
snapshots=config["snapshots"],
costs=config["costs"],
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
export_ports="resources/" + SECDIR + "export_ports.csv",
costs="resources/" + RDIR + "costs_{planning_horizons}.csv",
ship_profile="resources/" + SECDIR + "ship_profile_{h2export}TWh.csv",
Expand Down Expand Up @@ -1197,7 +1197,7 @@ rule override_respot:
for discountrate in config["costs"]["discountrate"]
for planning_horizons in config["scenario"]["planning_horizons"]
},
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
network="networks/" + RDIR + "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
energy_totals="resources/"
+ SECDIR
Expand Down Expand Up @@ -1623,7 +1623,7 @@ if config["foresight"] == "overnight":
solving=config["solving"],
augmented_line_connection=config["augmented_line_connection"],
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
# network=RESDIR
# + "prenetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}.nc",
network=RESDIR
Expand Down Expand Up @@ -1665,7 +1665,7 @@ rule make_sector_summary:
h2export_qty=config["export"]["h2export"],
foresight=config["foresight"],
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
networks=expand(
RESDIR
+ "postnetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
Expand Down Expand Up @@ -1765,7 +1765,7 @@ rule make_statistics:

rule plot_sector_network:
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
network=RESDIR
+ "postnetworks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
output:
Expand Down Expand Up @@ -2089,7 +2089,7 @@ if config["foresight"] == "myopic":
"co2_sequestration_potential", 200
),
input:
overrides="data/override_component_attrs",
overrides=directory("data/override_component_attrs"),
network=RESDIR
+ "prenetworks-brownfield/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sopts}_{planning_horizons}_{discountrate}_{demand}_{h2export}export.nc",
costs=CDIR + "costs_{planning_horizons}.csv",
Expand Down

0 comments on commit fe7dfbf

Please sign in to comment.