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)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
List of rank objects |
||
|
Shifted background scores |
||
|
Number of runs per year |
||
|
Name of the run |
||
|
True |
Boolean flag for printing cands which do or do not overlap with known LVK events |
|
|
0 |
Threshold (/bank/year) for saving candidates in output dictionary |
|
|
0 |
Threshold (/bank/year) for printing candidates |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
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