Skip to content
Snippets Groups Projects
Commit e7019e9e authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'prior_read_npinf' into 'master'

Prior fails to read in prior file with inf

See merge request lscsoft/bilby!808
parents dbd2831e 1a04c5ae
No related branches found
No related tags found
No related merge requests found
......@@ -424,7 +424,7 @@ class Prior(object):
val = other_cls.from_repr(vals)
else:
try:
val = eval(val, dict(), dict(np=np))
val = eval(val, dict(), dict(np=np, inf=np.inf, pi=np.pi))
except NameError:
raise TypeError(
"Cannot evaluate prior, "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment