From 1bbb03aa36ea173e103d155aafb038b7d61db29d Mon Sep 17 00:00:00 2001 From: Stefan Doerr Date: Mon, 19 Feb 2024 17:57:01 +0200 Subject: [PATCH] fix config file test to not require prior_model in the configs --- tests/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_examples.py b/tests/test_examples.py index 8cd5155e6..82243a55b 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -19,7 +19,7 @@ def test_example_yamls(fname): args = yaml.load(f, Loader=yaml.FullLoader) prior = None - if args["prior_model"] is not None: + if "prior_model" in args and args["prior_model"] is not None: dataset = DummyDataset(has_atomref=True) prior = getattr(priors, args["prior_model"])(dataset=dataset)