Commit 8250f9b8 authored by Ronan Hamon's avatar Ronan Hamon

increase number of samples of signals in test_waveform

parent 2c1ee178
Pipeline #456 failed with stage
in 34 seconds
......@@ -109,7 +109,7 @@ def assert_clipping(x_clipped, x_ref, min_value, max_value):
def get_data(request):
request.cls.fs = np.random.choice(FS)
request.cls.length = np.random.randint(request.cls.fs, request.cls.fs * 2)
request.cls.length = np.random.randint(request.cls.fs*2, request.cls.fs * 3)
request.cls.x_mono = np.random.rand(request.cls.length)
request.cls.x_mono_2 = np.random.rand(request.cls.length, 1)
......@@ -227,6 +227,7 @@ class TestWaveform:
assert w.fs == fs
assert w.length == int(np.floor(fs * self.length / self.fs))
assert not w.is_stereo()
print(self.length, self.fs)
assert w.duration == pytest.approx(self.length / self.fs, 1e-4)
np.testing.assert_equal(
w.time_axis,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment