Skip to content

Commit 213819e

Browse files
committed
[CC] test update
1 parent de622aa commit 213819e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/sq_metrics/roughness/test_roughness_dw.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_roughness_dw():
4444

4545
# Stimulus generation
4646
stimulus, _ = signal_test(
47-
fc=1000, fmod=70, mdepth=1, fs=44100, d=0.2, dB=70)
47+
fc=1000, fmod=70, mdepth=1, fs=44100, d=0.2, dB=60)
4848

4949
# Roughness calculation
5050
roughness, time, _, _ = roughness_dw(stimulus, fs=44100, overlap=0)
@@ -82,7 +82,7 @@ def test_roughness_dw_sdt():
8282

8383
# Stimulus generation
8484
stimulus, time = signal_test(
85-
fc=1000, fmod=70, mdepth=1, fs=44100, d=0.2, dB=70)
85+
fc=1000, fmod=70, mdepth=1, fs=44100, d=0.2, dB=60)
8686
time = DataLinspace(
8787
name="time",
8888
unit="s",
@@ -141,11 +141,9 @@ def test_roughness_dw_freq():
141141

142142
# conversion into frequency domain
143143
n = len(stimulus)
144-
window = np.blackman(n)
145-
window = window / sum(window)
146144

147145
# Creation of the spectrum by FFT using the Blackman window
148-
spec = fft(stimulus * window)[0:n//2] * 1.42
146+
spec = fft(stimulus )[0:n//2] * 1.42
149147
# Highest frequency
150148
nMax = round(n / 2)
151149
# Frequency axis in Hertz
@@ -157,6 +155,7 @@ def test_roughness_dw_freq():
157155
"name": "Roughness",
158156
"values": roughness,
159157
}
158+
print(R)
160159

161160
# Check compliance
162161
tst = check_compliance(R)

0 commit comments

Comments
 (0)