ranking_HM.print_top_cand_list#

Back to Module page

Summary#

Print the top candidates from the rank_objs

Signature#

def print_top_cand_list(rank_objs, allbanksbg_shifted, runs_per_yr, run, LVK = True, IFAR_THRESHOLD_SAVE = 0, IFAR_THRESHOLD_PRINT = 0)
Input variables#

Name

Type

Default

Description

rank_objs

List of rank objects

allbanksbg_shifted

Shifted background scores

runs_per_yr

Number of runs per year

run

Name of the run

LVK

True

Boolean flag for printing cands which do or do not overlap with known LVK events

IFAR_THRESHOLD_SAVE

0

Threshold (/bank/year) for saving candidates in output dictionary

IFAR_THRESHOLD_PRINT

0

Threshold (/bank/year) for printing candidates

Output variables#

Return annotation

Docstring type

Description

None

nested dictionary with properties of the top candidates in each bank

Docstring#

Print the top candidates from the rank_objs
:param rank_objs: List of rank objects
:param allbanksbg_shifted: Shifted background scores
:param runs_per_yr: Number of runs per year
:param run: Name of the run
:param LVK: Boolean flag for printing cands
    which do or do not overlap with known LVK events
:param IFAR_THRESHOLD_SAVE: Threshold (/bank/year) for saving candidates
    in output dictionary
:param IFAR_THRESHOLD_PRINT: Threshold (/bank/year) for printing candidates
:return:
    nested dictionary with properties of the top candidates in each bank