Merge pull request #452 from SaikiranGudla/master #16
GitHub Actions / Unit Test Results
failed
Apr 16, 2024 in 0s
4 fail, 1 006 skipped, 246 pass in 4m 9s
Annotations
Check warning on line 0 in test.rf.test_spec_est
github-actions / Unit Test Results
test_spec_est_t1 (test.rf.test_spec_est) failed
results.xml
Raw output
def test_spec_est_t1():
fs = 64
length = 600 # seconds
N = fs * length
t = linspace(0, length, num=N, endpoint=False)
# Generate a sinusoid at frequency f
f = 10 # Hz
a = cos(2 * pi * f * t) * 2 ** 15
> amp, freqs = spec_est(a, fs, ref=2 ** 15, plot=False)
test/rf/test_spec_est.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = array([ 32768. , 18204.92539559, -12539.77071174, ...,
-32138.37206828, -12539.7707117 , 18204.92539557])
fs = 64, ref = 32768, plot = False
def spec_est(x, fs, ref=2 ** 15, plot=False):
N = len(x)
# Apply window
> window = signal.kaiser(N, beta=38)
E AttributeError: module 'scipy.signal' has no attribute 'kaiser'
test/rf/spec.py:26: AttributeError
Check warning on line 0 in test.rf.test_spec_est
github-actions / Unit Test Results
test_spec_est_t2 (test.rf.test_spec_est) failed
results.xml
Raw output
def test_spec_est_t2():
fs = 64
length = 600 # seconds
N = fs * length
t = linspace(0, length, num=N, endpoint=False)
# Generate a sinusoid at frequency f
f = 10 # Hz
a = exp(1j * 2 * pi * f * t) * 2 ** 15
> amp, freqs = spec_est(a, fs, ref=2 ** 15, plot=False)
test/rf/test_spec_est.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = array([ 32768. +0.j , 18204.92539559+27245.59625593j,
-12539.77071174+30273.68452133j, ...,
-32138.37206828 -6392.71967168j, -12539.7707117 -30273.68452134j,
18204.92539557-27245.59625594j])
fs = 64, ref = 32768, plot = False
def spec_est(x, fs, ref=2 ** 15, plot=False):
N = len(x)
# Apply window
> window = signal.kaiser(N, beta=38)
E AttributeError: module 'scipy.signal' has no attribute 'kaiser'
test/rf/spec.py:26: AttributeError
Check warning on line 0 in test.rf.test_spec_est
github-actions / Unit Test Results
test_spec_est_t3 (test.rf.test_spec_est) failed
results.xml
Raw output
def test_spec_est_t3():
fs = 64
length = 600 # seconds
N = fs * length
t = linspace(0, length, num=N, endpoint=False)
# Generate a sinusoid at frequency f
f = 0 # Hz
a = cos(2 * pi * f * t) * 2 ** 15
# a = exp(1j * 2 * pi * f * t) * 2 ** 15
> amp, freqs = spec_est(a, fs, ref=2 ** 15, plot=False)
test/rf/test_spec_est.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = array([32768., 32768., 32768., ..., 32768., 32768., 32768.]), fs = 64
ref = 32768, plot = False
def spec_est(x, fs, ref=2 ** 15, plot=False):
N = len(x)
# Apply window
> window = signal.kaiser(N, beta=38)
E AttributeError: module 'scipy.signal' has no attribute 'kaiser'
test/rf/spec.py:26: AttributeError
Check warning on line 0 in test.rf.test_spec_est
github-actions / Unit Test Results
test_spec_est_t4 (test.rf.test_spec_est) failed
results.xml
Raw output
def test_spec_est_t4():
fs = 64
length = 600 # seconds
N = fs * length
t = linspace(0, length, num=N, endpoint=False)
# Generate a sinusoid at frequency f
f = 0 # Hz
# a = cos(2 * pi * f * t) * 2 ** 15
a = exp(1j * 2 * pi * f * t) * 2 ** 15
> amp, freqs = spec_est(a, fs, ref=2 ** 15, plot=False)
test/rf/test_spec_est.py:64:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = array([32768.+0.j, 32768.+0.j, 32768.+0.j, ..., 32768.+0.j, 32768.+0.j,
32768.+0.j])
fs = 64, ref = 32768, plot = False
def spec_est(x, fs, ref=2 ** 15, plot=False):
N = len(x)
# Apply window
> window = signal.kaiser(N, beta=38)
E AttributeError: module 'scipy.signal' has no attribute 'kaiser'
test/rf/spec.py:26: AttributeError
Loading