From d9033374e4bf0bb70df0828743b9aab69c0cbb27 Mon Sep 17 00:00:00 2001 From: danielelerede-oet Date: Mon, 26 Aug 2024 10:34:27 +0200 Subject: [PATCH] Update scripts/solve_network.py Co-authored-by: Fabian Neumann --- scripts/solve_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index 1edcc9093..a90ae3105 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -1055,8 +1055,8 @@ def extra_functionality(n, snapshots): if config["sector"]["enhanced_geothermal"]["enable"]: add_flexible_egs_constraint(n) - if n.snakemake.params.custom_extra_functionality: - source_path = n.snakemake.params.custom_extra_functionality + if params.custom_extra_functionality: + source_path = params.custom_extra_functionality assert os.path.exists(source_path), f"{source_path} does not exist" sys.path.append(os.path.dirname(source_path)) module_name = os.path.splitext(os.path.basename(source_path))[0]