Commit b657ecbb authored by Kipp Cannon's avatar Kipp Cannon
Browse files

Merge branch 'fix_vetoed_coincs_bug' into 'master'

Fix vetoed coincs bug

See merge request !337
parents e1f6f721 603f3908
Pipeline #25739 passed with stages
in 165 minutes and 1 second
......@@ -24,6 +24,10 @@
#
try:
from fpconst import NegInf
except ImportError:
NegInf = float("-inf")
import itertools
import math
import scipy.stats
......@@ -156,7 +160,7 @@ class LnLRDensity(snglcoinc.LnLRDensity):
except AttributeError:
self.mkinterps()
interps = self.interps
return sum(interps[param](*value) for param, value in params.items())
return sum(interps[param](*value) for param, value in params.items()) if params else NegInf
def __iadd__(self, other):
if type(self) != type(other) or set(self.densities) != set(other.densities):
......
Supports Markdown
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