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

OEM pdf health fix pt2

parent 0a23d52e
No related branches found
No related tags found
No related merge requests found
Pipeline #589894 passed
......@@ -571,6 +571,12 @@ class RankingStatPDF(object):
raise ValueError("cannot be initialized from a RankingStat that is not for a specific set of templates")
self.template_ids = rankingstat.template_ids
# the sum of noise counts may change due to first-round-extinction,
# so store the sum of counts before extinction in a different variable.
# This will be used for checking the health of the PDF
self.noise_counts_before_extinction = 0
#
# bailout used by codes that want all-zeros histograms
#
......@@ -638,10 +644,6 @@ class RankingStatPDF(object):
self.noise_lr_lnpdf.normalize()
self.signal_lr_lnpdf.array *= rankingstat.numerator.candidate_count_model() / self.signal_lr_lnpdf.array.sum()
self.signal_lr_lnpdf.normalize()
# the sum of noise counts may change due to first-round-extinction,
# so store the sum of counts before extinction in a different variable.
# This will be used for checking the health of the PDF
self.noise_counts_before_extinction = self.noise_lr_lnpdf.array.sum()
......
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