BirdSongToolbox.free_epoch_tools.event_clipper_nd

BirdSongToolbox.free_epoch_tools.event_clipper_nd(data, label_events, fs, window, subtract_mean=None, \*\*kwargs)

Get all of the Instances for all Labels given for one set of chunks

Parameters
data: list | shape [Chunks]->(Channels, Samples) or (Freqs, Channels, Samples)

Neural Data

label_eventslist, shape [Label]->[Chunks]->[Events]

Onsets of the Labels to be Clipped

fsint

Sampling Frequency

windowtuple | shape (start, end)

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

subtract_meantuple, optional | shape (start, end)

if present, subtract the mean value in the subtract_mean window for each trial from that trial’s time series (this is a trial-by-trial baseline)

Returns
chunk_eventslist | shape [Labels]->(Instances, Channels, Samples) or (Instances, Frequencies, Channels, Samples)

Neural Data in the User Defined Window for all Instances of each Label