Skip to content

Commit

Permalink
fix config file test to not require prior_model in the configs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdoerr committed Feb 19, 2024
1 parent e79b9c0 commit 1bbb03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1bbb03a

Please sign in to comment.