Skip to content

Commit 891a2fc

Browse files
add type hints to hilbert
1 parent 332e757 commit 891a2fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elephant/signal_processing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ def _morlet_wavelet_ft(freq, n_cycles, fs, n):
742742
return signal_wt
743743

744744

745-
def hilbert(signal, padding='nextpow'):
745+
def hilbert(signal: neo.AnalogSignal,
746+
padding: str | int | None = 'nextpow') -> neo.AnalogSignal:
746747
"""
747748
Apply a Hilbert transform to a `neo.AnalogSignal` object in order to
748749
obtain its (complex) analytic signal.

0 commit comments

Comments
 (0)