Commit 88c49fd2 authored by Marco Bacci's avatar Marco Bacci

syntax

parent 21e09f36
......@@ -191,7 +191,7 @@ class EMCEE (Sampler):
lnpdiff = (self.dimensions - 1.) * numpy.log(zz) + Lps - lnprob0
except FloatingPointError as e:
print(":: WARNING: reject proposed parameter as two specular chains are at -inf, ",e)
assert numpy.where(lnprob0==-float('inf'))[0] in numpy.where(Lps==-float('inf'))[0], ":: Fatal: -inf are not located where expected. This is a bug."
assert numpy.where(lnprob0 == -float('inf'))[0] in numpy.where(Lps == -float('inf') )[0], ":: Fatal: -inf are not located where expected. This is a bug."
lnprob0[numpy.isinf(lnprob0)] = 0
lnpdiff = (self.dimensions - 1.) * numpy.log(zz) + Lps - lnprob0
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment