From 73b0645c138dadf9fc1e349095dc1870e3f0f970 Mon Sep 17 00:00:00 2001 From: Adrian Odenweller Date: Tue, 25 Oct 2022 14:29:07 +0200 Subject: [PATCH 1/2] Fix network directory path in make_summary --- scripts/make_summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/make_summary.py b/scripts/make_summary.py index 873a2a8b..3d28ee25 100644 --- a/scripts/make_summary.py +++ b/scripts/make_summary.py @@ -556,9 +556,9 @@ if __name__ == "__main__": opts="Co2L-24H", country="all", ) - network_dir = os.path.join("..", "results", "networks") + network_dir = os.path.join("..", "results", "networks", snakemake.config["run"]["name"]) else: - network_dir = os.path.join("results", "networks") + network_dir = os.path.join("results", "networks", snakemake.config["run"]["name"]) configure_logging(snakemake) config = snakemake.config From dcd16e32a88385fb1fe8366da4de9807ce33baf3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 25 Oct 2022 13:23:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/make_summary.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/make_summary.py b/scripts/make_summary.py index 3d28ee25..0d12a04c 100644 --- a/scripts/make_summary.py +++ b/scripts/make_summary.py @@ -556,9 +556,13 @@ if __name__ == "__main__": opts="Co2L-24H", country="all", ) - network_dir = os.path.join("..", "results", "networks", snakemake.config["run"]["name"]) + network_dir = os.path.join( + "..", "results", "networks", snakemake.config["run"]["name"] + ) else: - network_dir = os.path.join("results", "networks", snakemake.config["run"]["name"]) + network_dir = os.path.join( + "results", "networks", snakemake.config["run"]["name"] + ) configure_logging(snakemake) config = snakemake.config