Skip to content
Snippets Groups Projects

Prior fails to read in prior file with inf

Merged Matthew David Pitkin requested to merge matthew-pitkin/bilby:prior_read_npinf into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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, "
Loading