BirdSongToolbox.preprocess.multi_bpf

BirdSongToolbox.preprocess.multi_bpf(chunk_neural_data, fs, l_freqs, h_freqs, remove_edges=False, verbose=False, \*\*kwargs)

Run multiple bandpass filters on one neural data Epoch(Chunks)

Parameters
chunk_neural_datalist, shape (channels, samples)

A Single Chunk of Neural Data to be Bandpass Filtered

fsfloat

The sample frequency in Hz.

l_freqsarray-like | None

For FIR filters, the lower pass-band edge; for IIR filters, the upper cutoff frequency. If None the data are only low-passed.

h_freqsarray-like | None

For FIR filters, the upper pass-band edge; for IIR filters, the upper cutoff frequency. If None the data are only low-passed.

remove_edgesbool, optional, default: False

If True, replace samples within half the kernel length to be np.nan. Only used for FIR filters when using neurodsp.

verbosebool, optional, default: False

If True it will print out information about the filter used, (mne only)

Returns
multi_filt_chunklist, shape [Freq]->(channels, samples)

The Chunk of Neural Data Bandpass Filtered

Examples using BirdSongToolbox.preprocess.multi_bpf