roiextract.filter.apply_batch#
- roiextract.filter.apply_batch(data, filters, ch_names=None)#
Apply a set of spatial filters to the provided data.
- Parameters:
- data
array, shape (n_sensors, n_times) The continuous data.
- filters
listofSpatialFilter Spatial filters to be applied to the data.
- ch_names
listofstr, optional The names of the channels in the data. If provided, the function will ensure that the channels and filter weights are matched properly. An error is raised if the number of channels differs between the filters and the data, or if the names of channels do not match.
- data
- Returns:
- tc
array, shape (n_filters, n_times) Array with time courses that correspond to the provided spatial filters.
- tc