filter_freq

nrv.ui.filter_freq(my_dict, my_key, freq, Q=10)[source]

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:
  • my_dict (dictionary) – dictionary where the quantity should be filtered

  • key (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