Skip to content

Commit

Permalink
test: spec: Fix window creation
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Pineda <Julia.Pineda@analog.com>
  • Loading branch information
jpineda3 committed Aug 16, 2024
1 parent 3853ead commit 4be93cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/rf/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def spec_est(x, fs, ref=2 ** 15, plot=False):
N = len(x)

# Apply window
window = signal.kaiser(N, beta=38)
window = signal.windows.kaiser(N, beta=8.6)
# x = multiply(x, window)

# Use FFT to get the amplitude of the spectrum
Expand Down Expand Up @@ -148,10 +148,6 @@ def sfdr(x, fs=1, ref=2 ** 15, plot=False):
next = peak_vals[1]
sfdr = absolute(main - next)

print(main)
print(next)
print(sfdr)

if plot:
import matplotlib.pyplot as plt

Expand Down

0 comments on commit 4be93cc

Please sign in to comment.