BirdSongToolbox.free_epoch_tools.label_extractor

BirdSongToolbox.free_epoch_tools.label_extractor(all_labels, starts, label_instructions)

Extracts all of the Neural Data Examples of User Selected Labels and return them in the designated manner.

Label_Instructions = tells the Function what labels to extract and whether to group them together

Parameters
all_labelslist, shape [Epochs]->[Labels]

List of all Labels corresponding to each Epoch in Full_Trials

startslist, shape [Epochs]->[Start Time]

List of all Start Times corresponding to each Epoch in Full_Trials

label_instructionslist

list of labels and how they should be treated. If you use a nested list in the instructions the labels in this nested list will be treated as if they are the same label

Returns
specified_labelslist, shape [Labels]->[Chunk]->[Times]

List containing the instances of the Labels for each Chunk