coincidence_HM#

Back to API tree index

Purpose#

Multi-detector coincidence, vetoing, and candidate output logic.

Module summary#

No module-level description available.

Top-level functions#

Function

Summary

collect_all_candidate_files_npy

collect_all_candidate_files_npz

collect_background_candidates

Function to collect background candidates (including real events)

collect_files

Returns list of length nfiles with loaded arrays, an element is None if the byte-size < 10

collect_files_npz

Returns list of length nfiles with each element being a tuple with events, mask_vetoed, veto_metadata, coherent_scores (+timeseries if collect_timeseries) an element is None if the byte-size < 10

combine_files

Combines files that were read in using collect_files

combine_files_npz

Combines files that were read in using collect_files_npz

create_candidate_output_dir_name

No docstring summary available.

create_shifted_observations

No docstring summary available.

find_friends_in_cloud

find_interesting_dir

Goes through trigger files for H1 and L1 in a directory and performs coincidence analysis

find_interesting_dir_cluster

fish_in_weaker_detector

Warning: This function has not been updated by Jay for HM case

fit_step_veto

flag_duplicates_per_group_pair

Picks a subset of pair_trigger_array such that each bucket of group_size in H1 and L1 has a unique \`coincident’ candidate. If a veto_mask is provided, defaults to preferentially keep in vetoed elements Note: The order of the input and output pair trigger array isn’t identical in the general case

get_best_candidate_segments

Returns best trigger pair given two lists of friends. Doesn’t impose a time-delay constraint, assumes that time-delay is either irrelevant (bg), or taken care of by using the appropriate time_shift_tol

get_files_with_glitches

No docstring summary available.

get_friends_arr

Groups triggers in clist into buckets every time_tol, and retains only those high enough relative to the maximum in each bucket

get_histogram_stats

No docstring summary available.

group_by_id

Groups the triggers in a clist into sublists with common calphas

inds_into_before

Gives indices into cand_before_veto for triggers in cand_after_veto We can use tolist(), but this is almost 10 times faster

load_trigger_file

Convenience function to load triggers from a file

main

No docstring summary available.

mypad

No docstring summary available.

pick_lists

Returns elements from list1 whose corresponding elements in list2 aren’t empty

read_channel_dict

Reads off boolean channel dict entries for times

remove_bad_times

No docstring summary available.

restart_run_from_json

No docstring summary available.

secondary_peak_reject

Return True if this trigger should be rejected for having a secondary peak that ruins the coherent score

select_optimal_trigger_pairs

Function to return optimized background, with extra veto based on significant psd drift

stringent_veto

Apply stringent vetoes to optimized candidates for the edge case in which the best one in the bucket survives, but the coincident ones do not

track_job

Track a multiprocessing job submitted in chunks

veto_and_optimize_coincidence_list

Returns list of vetoed and optimized coincident candidates (w/ timeslides) and any extra information

veto_and_optimize_group

veto_and_optimize_single_detector

Veto and optimize coincident candidates in a single detector

veto_orthogonal_step

No public classes were found.