Skip to content

Commit

Permalink
Add different scenario name for subworkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-f committed Jul 18, 2024
1 parent e9b7f64 commit d994d10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CDIR = config["costs_dir"]
config.update({"git_commit": get_last_commit_message(".")})
config.update({"submodule_commit": get_last_commit_message(PYPSAEARTH_FOLDER)})

RDIR_PE = run["name"] + "/" if run.get("name") else ""
RDIR_PE = run["name_subworkflow"] + "/" if run.get("name_subworkflow") else ""
CDIR_PE = RDIR_PE if not run.get("shared_cutouts") else ""

CUTOUTS_PATH = (
Expand Down
1 change: 1 addition & 0 deletions config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ costs_dir: data/ #TODO change to the equivalent of technology data

run:
name: "test_run" # use this to keep track of runs with different settings
name_subworkflow: "" # scenario name of the pypsa-earth subworkflow
shared_cutouts: true # set to true to share the default cutout(s) across runs
# Note: value false requires build_cutout to be enabled

Expand Down
1 change: 1 addition & 0 deletions test/config.test1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ costs_dir: data/ #TODO change to the equivalent of technology data

run:
name: "tutorial" # use this to keep track of runs with different settings
name_subworkflow: "tutorial" # scenario name of the pypsa-earth subworkflow
shared_cutouts: true # set to true to share the default cutout(s) across runs
# Note: value false requires build_cutout to be enabled

Expand Down
1 change: 1 addition & 0 deletions test/config.test_myopic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ costs_dir: data/ #TODO change to the equivalent of technology data

run:
name: "test_myopic" # use this to keep track of runs with different settings
name_subworkflow: "tutorial" # scenario name of the pypsa-earth subworkflow
shared_cutouts: true # set to true to share the default cutout(s) across runs
# Note: value false requires build_cutout to be enabled
foresight: myopic
Expand Down

0 comments on commit d994d10

Please sign in to comment.