Skip to content
Snippets Groups Projects
Commit c87b7b3d authored by Prathamesh Joshi's avatar Prathamesh Joshi
Browse files

Allowing impossible inj candidates bug fix

parent 6618a425
No related branches found
No related tags found
No related merge requests found
Pipeline #576523 canceled
......@@ -238,6 +238,7 @@ class RankingStat(snglcoinc.LnLikelihoodRatioMixin):
self.numerator += other.numerator
self.denominator += other.denominator
self.zerolag += other.zerolag
self.allow_impossible_candidates |= other.allow_impossible_candidates
return self
def copy(self):
......@@ -250,6 +251,7 @@ class RankingStat(snglcoinc.LnLikelihoodRatioMixin):
# otherwise the copy's will be reset to None
if self.denominator.lnzerolagdensity is self.zerolag:
new.denominator.lnzerolagdensity = new.zerolag
new.allow_impossible_candidates = self.allow_impossible_candidates
return new
def kwargs_from_triggers(self, events, offsetvector):
......@@ -456,6 +458,7 @@ class OnlineFrankensteinRankingStat(RankingStat):
self.numerator = inspiral_lr.OnlineFrankensteinLnSignalDensity.splice(src.numerator, donor.numerator)
self.denominator = inspiral_lr.OnlineFrankensteinLnNoiseDensity.splice(src.denominator, donor.denominator)
self.zerolag = inspiral_lr.OnlineFrankensteinLnLRDensity.splice(src.zerolag)
self.allow_impossible_candidates = src.allow_impossible_candidates
self.src = src
self.donor = donor
......@@ -464,6 +467,7 @@ class OnlineFrankensteinRankingStat(RankingStat):
new.numerator = self.numerator.copy()
new.denominator = self.denominator.copy()
new.zerolag = self.zerolag.copy()
new.allow_impossible_candidates = self.allow_impossible_candidates
return new
def finish(self):
......
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