From 74185560e0570cb15662fca8784adb8b3fa93aa2 Mon Sep 17 00:00:00 2001 From: Philipp Glaum Date: Wed, 10 Apr 2024 12:04:45 +0200 Subject: [PATCH] initial implementation --- Snakefile | 8 +++++++- config/config.default.yaml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Snakefile b/Snakefile index ba93a869..ed60c0f5 100644 --- a/Snakefile +++ b/Snakefile @@ -22,7 +22,13 @@ configfile: "config/config.yaml" run = config["run"] scenarios = get_scenarios(run) -RDIR = get_rdir(run) +prefix = run.get("prefix", "") +rdir = get_rdir(run) + +if prefix: + RDIR = f"{prefix}/{rdir}" +else: + RDIR = rdir logs = path_provider("logs/", RDIR, run["shared_resources"]) benchmarks = path_provider("benchmarks/", RDIR, run["shared_resources"]) diff --git a/config/config.default.yaml b/config/config.default.yaml index 235c238d..61ef8c1b 100644 --- a/config/config.default.yaml +++ b/config/config.default.yaml @@ -20,6 +20,7 @@ remote: # docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#run run: + prefix: "" name: "" scenarios: enable: false