utils.is_close_to#

Back to Module page

Summary#

Signature#

def is_close_to(t_1, t_2, t_1_start = None, eps = 4, return_close = False)
Input variables#

Name

Type

Default

Description

t_1

List of reference times (ends of waveforms)

t_2

Time, or list of times that we are checking against the reference times

t_1_start

None

if available, list of start times of waveforms

eps

4

Tolerance to mark associated triggers

return_close

False

Flag to return len(t_2) x len(t_1) boolean matrix indicating closeness

Output variables#

Return annotation

Docstring type

Description

None

Boolean flag / array of flags listing whether time / list of times in t_2 is close to any of the t_1 if return_close, returns adjacency matrix too

Docstring#

:param t_1: List of reference times (ends of waveforms)
:param t_2:
    Time, or list of times that we are checking against the reference times
:param t_1_start: if available, list of start times of waveforms
:param eps: Tolerance to mark associated triggers
:param return_close:
    Flag to return len(t_2) x len(t_1) boolean matrix indicating closeness
:return:
    Boolean flag / array of flags listing whether time / list of times in
    t_2 is close to any of the t_1
    if return_close, returns adjacency matrix too