From 89dbd53805680427231c96904655526548ee0021 Mon Sep 17 00:00:00 2001 From: Michael Lindner Date: Tue, 26 Mar 2024 17:20:10 +0100 Subject: [PATCH] provide Path object as input to ConfigSettings --- doc/release_notes.rst | 2 ++ scripts/_helpers.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index e561cbe0..e08981d3 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -10,6 +10,8 @@ Release Notes Upcoming Release ================ +* bugfix: convert Strings to pathlib.Path objects as input to ConfigSettings + * Allow the use of more solvers in clustering (Xpress, COPT, Gurobi, CPLEX, SCIP, MOSEK). * Enhanced support for choosing different weather years diff --git a/scripts/_helpers.py b/scripts/_helpers.py index f063877e..64ccab87 100644 --- a/scripts/_helpers.py +++ b/scripts/_helpers.py @@ -427,7 +427,7 @@ def mock_snakemake( configfiles = [configfiles] resource_settings = ResourceSettings() - config_settings = ConfigSettings(configfiles=configfiles) + config_settings = ConfigSettings(configfiles=map(Path, configfiles)) workflow_settings = WorkflowSettings() storage_settings = StorageSettings() dag_settings = DAGSettings(rerun_triggers=[])