From 8792f8dbd9ada574bb6853d0ced3c3ac68a62abd Mon Sep 17 00:00:00 2001 From: Joseph Lemaitre Date: Tue, 30 Apr 2024 19:02:01 -0400 Subject: [PATCH] undo small changes --- flepimop/gempyor_pkg/src/gempyor/model_info.py | 2 +- flepimop/gempyor_pkg/tests/seir/test_seir.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flepimop/gempyor_pkg/src/gempyor/model_info.py b/flepimop/gempyor_pkg/src/gempyor/model_info.py index ef869d6b7..0650b8262 100644 --- a/flepimop/gempyor_pkg/src/gempyor/model_info.py +++ b/flepimop/gempyor_pkg/src/gempyor/model_info.py @@ -77,7 +77,7 @@ def __init__( # 3. What about subpopulations spatial_config = config["subpop_setup"] - if "data_path" in config: + if config["data_path"].exists(): raise ValueError("The config has a data_path section. This is no longer supported.") spatial_base_path = pathlib.Path(spatial_path_prefix) diff --git a/flepimop/gempyor_pkg/tests/seir/test_seir.py b/flepimop/gempyor_pkg/tests/seir/test_seir.py index fefa04c85..3915e428b 100644 --- a/flepimop/gempyor_pkg/tests/seir/test_seir.py +++ b/flepimop/gempyor_pkg/tests/seir/test_seir.py @@ -574,7 +574,7 @@ def test_inference_resume(): stoch_traj_flag = True spatial_config = config["subpop_setup"] - if "data_path" in config: + if config["data_path"].exists(): raise ValueError("The config has a data_path section. This is no longer supported.") # spatial_base_path = pathlib.Path(config["data_path"].get()) modinf = model_info.ModelInfo(