BirdSongToolbox.free_epoch_tools.event_clipper¶
-
BirdSongToolbox.free_epoch_tools.
event_clipper
(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)
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)
Neural Data in the User Defined Window for all Instances of each Label