Skip to content

Commit

Permalink
updated function names in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kippfreud committed Jul 3, 2024
1 parent c1a5a26 commit dfe6e41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_signal_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
import pynapple as nap


def test_compute_spectrum():
def test_compute_spectogram():
t = np.linspace(0, 1, 1024)
sig = nap.Tsd(d=np.random.random(1024), t=t)
r = nap.compute_spectrum(sig)
r = nap.compute_spectogram(sig)
assert len(r[1]) == 1024
assert len(r[0]) == 1024
assert r[0].dtype == np.complex128
assert r[1].dtype == np.float64


def test_compute_welch_spectrum():
def test_ccompute_welch_spectogram():
t = np.linspace(0, 1, 1024)
sig = nap.Tsd(d=np.random.random(1024), t=t)
r = nap.compute_welch_spectrum(sig)
r = nap.compute_welch_spectogram(sig)
assert r[0].dtype == np.float64
assert r[1].dtype == np.float64

Expand Down

0 comments on commit dfe6e41

Please sign in to comment.