mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
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:
committed by
Thomas Petazzoni
parent
af8a75fa0d
commit
08c78cf315
@@ -1,4 +1,5 @@
|
|||||||
import numpy
|
import numpy
|
||||||
|
import scipy.io
|
||||||
import scipy.special
|
import scipy.special
|
||||||
import scipy.integrate
|
import scipy.integrate
|
||||||
|
|
||||||
@@ -10,3 +11,6 @@ assert(com == 15.0)
|
|||||||
|
|
||||||
t = scipy.integrate.trapezoid([5,8,10])
|
t = scipy.integrate.trapezoid([5,8,10])
|
||||||
assert(t == 15.5)
|
assert(t == 15.5)
|
||||||
|
|
||||||
|
mdic = {"t": t, "label": "example"}
|
||||||
|
scipy.io.savemat("example.mat", mdic)
|
||||||
|
|||||||
Reference in New Issue
Block a user