Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dc51e commit b72ac36Copy full SHA for b72ac36
1 file changed
lib/matplotlib/tests/test_mlab.py
@@ -1107,8 +1107,8 @@ def test_spectral_helper_raises(self):
1107
{"y": self.y+1, "mode": "phase"},
1108
{"mode": "spam"}, # Bad mode.
1109
{"y": self.y, "sides": "eggs"}, # Bad sides.
1110
- {"NFFT": 10, "noverlap": 20}, # noverlap > NFFT.
1111
- {"y": self.y, "NFFT": 10, "noverlap": 20}, # noverlap == NFFT.
+ {"y": self.y, "NFFT": 10, "noverlap": 20}, # noverlap > NFFT.
+ {"NFFT": 10, "noverlap": 10}, # noverlap == NFFT.
1112
{"y": self.y, "NFFT": 10,
1113
"window": np.ones(9)}, # len(win) != NFFT.
1114
]:
@@ -1361,6 +1361,7 @@ def test_spectrum(self, kind):
1361
assert spec.shape == freqs.shape
1362
if kind == "magnitude":
1363
self.check_maxfreq(spec, fsp, self.fstims)
1364
+ self.check_freqs(spec, freqs, fsp, self.fstims)
1365
1366
@pytest.mark.parametrize(
1367
'kwargs',
0 commit comments