Skip to content

Commit

Permalink
update docs for new filter approach
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Feb 24, 2024
1 parent 1f2b648 commit 020aff2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions neurodsp/filt/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ def filter_signal(sig, fs, pass_type, f_range, filter_type=None,
return_filter : bool, optional, default: False
If True, return the filter coefficients.
**filter_kwargs
For FIR filters:
n_cycles : float, optional
Filter length, in number of cycles, defined at 'f_lo' frequency, if using an FIR filter.
Either `n_cycles` or `n_seconds` can be defined to set the filter length, but not both.
If not provided, and `n_seconds` is also not defined, defaults to 3.
n_seconds : float, optional
Filter length, in seconds, if using an FIR filter.
Either `n_cycles` or `n_seconds` can be defined to set the filter length, but not both.
remove_edges : bool, optional, default: True
If True, replace samples within half the kernel length to be np.nan.
Only used for FIR filters.
For IIR filters:
butterworth_order : int, optional
Order of the butterworth filter, if using an IIR filter.
See input 'N' in scipy.signal.butter.
Additional parameters for the filtering function, specific to filtering type.
| For FIR filters, can include:
| n_cycles : float, optional
| Filter length, in number of cycles, defined at 'f_lo' frequency.
| Either `n_cycles` or `n_seconds` can be set for the filter length, but not both.
| If not provided, and `n_seconds` is also not defined, defaults to 3.
| n_seconds : float, optional
| Filter length, in seconds.
| Either `n_cycles` or `n_seconds` can be set for the filter length, but not both.
| remove_edges : bool, optional, default: True
| If True, replace samples within half the kernel length to be np.nan.
| For IIR filters, can include:
| butterworth_order : int, optional
| Order of the butterworth filter. See input 'N' in scipy.signal.butter.
Returns
-------
Expand Down

0 comments on commit 020aff2

Please sign in to comment.