BirdSongToolbox.free_epoch_tools.long_silence_finder

BirdSongToolbox.free_epoch_tools.long_silence_finder(silence, all_labels, all_starts, all_ends, window)

Checks if the Duration of the Silence Label is longer than the window and sets start equal to the middle of event

Parameters
silencestr or int

User defined Label to focus on

all_labelslist

List of all Labels corresponding to each Chunk in Full_Trials [Epochs]->[Labels]

all_startslist

List of all Start Times corresponding to each Chunk in Full_Trials [Epochs]->[Start Time]

all_endslist

List of all End Times corresponding to each Chunk in Full_Trials [Epochs]->[End Time]

windowtuple | shape (start, end)

Window (in ms) around event onsets, window components must be integer values

Returns
label_indexlist

List of all start frames of every instances of the label of focus [Num_Trials]->[Num_Exs]