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

Prevent extinction with empty zerolag pdfs

parent 14a0d4aa
No related branches found
No related tags found
1 merge request!564Online new extinction
Pipeline #582127 canceled
......@@ -256,10 +256,18 @@ def main():
# get the zerolag pdf for this bin and use it to perform bin-specific extinction
zerolag_counts_url = url_from_registry(reg, zerolag_counts_path)
pdf += far.RankingStatPDF.from_xml(ligolw_utils.load_url(zerolag_counts_url, verbose = options.verbose, contenthandler = far.RankingStat.LIGOLWContentHandler), u"gstlal_inspiral_likelihood")
if data:
data += pdf.new_with_extinction()
if len(numpy.nonzero(pdf.zero_lag_lr_lnpdf.array)[0]) > 0:
# LR calculation has started and we are ready to perform first-round extinction
if data:
data += pdf.new_with_extinction()
else:
data = pdf.new_with_extinction()
else:
data = pdf.new_with_extinction()
logging.warning(f'Skipping first-round extinction for {}')
if data:
data += pdf
else:
data = pdf
# while looping through registries
# send heartbeat messages
......
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