We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8ac027 commit 0847882Copy full SHA for 0847882
tests/test_augmentations.py
@@ -196,9 +196,10 @@ def test_pitch_shift_transform_with_pitch_detection():
196
f0_hz = f0_hz[~np.isnan(f0_hz)]
197
198
detected_f0_hz = np.max(f0_hz)
199
-
200
- # the detected frequency vs. expected frequency should not be smaller than 20Hz.
201
- assert abs(detected_f0_hz - expected_frequency_shift) < 20
+
+ detection_threshold_in_hz = 40
+ # the detected frequency vs. expected frequency should not be smaller than 40Hz.
202
+ assert abs(detected_f0_hz - expected_frequency_shift) < detection_threshold_in_hz
203
204
205
@pytest.mark.parametrize("num_channels", [1, 2])
0 commit comments