Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
20
venv/Lib/site-packages/scipy/misc/tests/test_common.py
Normal file
20
venv/Lib/site-packages/scipy/misc/tests/test_common.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
from numpy.testing import assert_equal, assert_almost_equal
|
||||
|
||||
from scipy.misc import face, ascent, electrocardiogram
|
||||
|
||||
|
||||
def test_face():
|
||||
assert_equal(face().shape, (768, 1024, 3))
|
||||
|
||||
|
||||
def test_ascent():
|
||||
assert_equal(ascent().shape, (512, 512))
|
||||
|
||||
|
||||
def test_electrocardiogram():
|
||||
# Test shape, dtype and stats of signal
|
||||
ecg = electrocardiogram()
|
||||
assert ecg.dtype == float
|
||||
assert_equal(ecg.shape, (108000,))
|
||||
assert_almost_equal(ecg.mean(), -0.16510875)
|
||||
assert_almost_equal(ecg.std(), 0.5992473991177294)
|
Loading…
Add table
Add a link
Reference in a new issue