Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraPido committed Nov 7, 2024
1 parent 2b19b81 commit 22c126e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion sigpro/basic_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class FFTFreq(primitive.FrequencyTransformation):

def __init__(self):
super().__init__("sigpro.transformations.frequency.fftfreq.fft_freq")



class FFTReal(primitive.FrequencyTransformation):
Expand Down
4 changes: 2 additions & 2 deletions sigpro/transformations/frequency/fftfreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ def fft_freq(amplitude_values, sampling_frequency):
"""
#frequency_values = np.fft.fftfreq(len(amplitude_values), 1 / sampling_frequency)
frequency_values = np.arange(0, len(amplitude_values)) * sampling_frequency
return np.array(amplitude_values), np.array(frequency_values)

return np.array(amplitude_values), np.array(frequency_values)
2 changes: 1 addition & 1 deletion tests/unit/transformations/frequency/test_fftfreq.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Tests for sigpro.transformations.frequency module."""
import numpy as np
from sigpro.transformations.frequency.fftfreq import fft_freq

from sigpro.transformations.frequency.fftfreq import fft_freq


def test_fft_freq():
Expand Down

0 comments on commit 22c126e

Please sign in to comment.