Skip to content

Commit

Permalink
return frequency as scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Balle committed Jun 12, 2024
1 parent 9caba86 commit 132eb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurokit2/signal/signal_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ def _signal_filter_sanitize(lowcut=None, highcut=None, sampling_rate=1000, norma
# pass frequencies in order of lowest to highest to the scipy filter
freqs = list(np.sort([lowcut, highcut]))
elif lowcut is not None:
freqs = [lowcut]
freqs = lowcut
filter_type = "highpass"
elif highcut is not None:
freqs = [highcut]
freqs = highcut
filter_type = "lowpass"

# Normalize frequency to Nyquist Frequency (Fs/2).
Expand Down

0 comments on commit 132eb78

Please sign in to comment.