fascicle_results.filter_freq

fascicle_results.filter_freq(my_key, freq, Q=10)

Basic Filtering of quantities. This function design a notch filter (scipy IIR-notch). Adds an item to the specified dictionary, with the key termination ‘_filtered’ concatenated to the original key.

Parameters:
  • key (str|list[str]) – name of the key to filter

  • freq (float or array, list, np.array) – frequecy or list of frequencies to filter in kHz, as time is defined in ms in NRV2. If multiple frequencies, they are filtered sequencially, with as may filters as frequencies, in the specified order

  • Q (float) – quality factor of the filter, by default set to 10