Skip to content

Commit

Permalink
Fix tests after prior file name is different
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoughlin committed Aug 28, 2023
1 parent 19778ee commit 4b74bc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nmma/tests/injections.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def create_injection_from_command_line(model_name):
path to the injection file created by nmma_create_injection
"""

prior_path = os.path.join("./priors/", model_name + ".prior")
if model_name == "nugent-hyper":
prior_path = os.path.join("./priors/", "sncosmo-generic" + ".prior")
else:
prior_path = os.path.join("./priors/", model_name + ".prior")
assert os.path.exists(prior_path), "prior file does not exist"
injection_name = os.path.join(test_directory, model_name + "_injection.json")

Expand Down

0 comments on commit 4b74bc6

Please sign in to comment.