Skip to content

Commit 1bbb03a

Browse files
committed
fix config file test to not require prior_model in the configs
1 parent e79b9c0 commit 1bbb03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_examples.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_example_yamls(fname):
1919
args = yaml.load(f, Loader=yaml.FullLoader)
2020

2121
prior = None
22-
if args["prior_model"] is not None:
22+
if "prior_model" in args and args["prior_model"] is not None:
2323
dataset = DummyDataset(has_atomref=True)
2424
prior = getattr(priors, args["prior_model"])(dataset=dataset)
2525

0 commit comments

Comments
 (0)