Commit 7b9cdec
committed
Fix specgram test on NumPy 1.20.
In NumPy 1.20, the fft is slight different (more accurate?) and returns
0 as the last entry, instead of some small number ~1e-30. This causes a
divide-by-zero warning in `log10`. However, this test doesn't really
care about the spectrogram, just the frequencies, so we can change the
scale to linear to avoid the warning.1 parent 2ea0d63 commit 7b9cdec
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4452 | 4452 | | |
4453 | 4453 | | |
4454 | 4454 | | |
4455 | | - | |
| 4455 | + | |
4456 | 4456 | | |
4457 | 4457 | | |
4458 | 4458 | | |
| |||
0 commit comments