support/testing/tests/test_python_scipy: add scipy::io module testing
Test the scipy::io module, to demonstrate that runtime dependencies are correct. Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
af8a75fa0d
commit
08c78cf315
@ -1,4 +1,5 @@
|
||||
import numpy
|
||||
import scipy.io
|
||||
import scipy.special
|
||||
import scipy.integrate
|
||||
|
||||
@ -10,3 +11,6 @@ assert(com == 15.0)
|
||||
|
||||
t = scipy.integrate.trapezoid([5,8,10])
|
||||
assert(t == 15.5)
|
||||
|
||||
mdic = {"t": t, "label": "example"}
|
||||
scipy.io.savemat("example.mat", mdic)
|
||||
|
Loading…
Reference in New Issue
Block a user