Skip to content
Snippets Groups Projects
Commit 1a04c5ae authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

base.py: parse inf and pi and np.inf and np.pi when reading prior files

parent 9fdef4e0
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