Skip to content

Commit

Permalink
fft freq unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraPido committed Nov 7, 2024
1 parent 7248fa8 commit a10eaeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/transformations/frequency/test_fftfreq.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
"""Tests for sigpro.transformations.frequency module."""
import numpy as np
from sigpro.transformations.frequency import fft_freq_allband
from sigpro.transformations.frequency import fft_freq



def test_fft_freq_allband():
def test_fft_freq():
# setup
amplitude_values = [1.5, -0.5, 2.0, 0.5, -1.0]
sampling_frequency = 2 # in Hz

# run
amplitude_result, frequency_result = fft_freq_allband(amplitude_values, sampling_frequency)
amplitude_result, frequency_result = fft_freq(amplitude_values, sampling_frequency)

# assert
expected_amplitude_values = np.array([1.5, -0.5, 2.0, 0.5, -1.0])
Expand Down

0 comments on commit a10eaeb

Please sign in to comment.