Commit 92265bb1 authored by René Fritze's avatar René Fritze Committed by René Fritze

[test] make for files runnable

parent 9d3849bb
......@@ -7,6 +7,7 @@ from hypothesis import given, settings, assume, reproduce_failure
from pymor.algorithms.basic import almost_equal
from pymor.algorithms.gram_schmidt import gram_schmidt, gram_schmidt_biorth
from pymortests.base import runmodule
from pymortests.fixtures.operator import operator_with_arrays_and_products
import pymortests.strategies as pyst
......@@ -132,3 +133,7 @@ def test_gram_schmidt_biorth_with_product(operator_with_arrays_and_products):
assert np.all(almost_equal(A2, B2))
assert np.all(almost_equal(A1, U1))
assert np.all(almost_equal(A2, U2))
if __name__ == "__main__":
runmodule(filename=__file__)
......@@ -9,6 +9,7 @@ from hypothesis.strategies import sampled_from
from pymor.algorithms.basic import almost_equal
from pymor.algorithms.svd_va import method_of_snapshots, qr_svd
from pymortests.base import runmodule
from pymortests.fixtures.operator import operator_with_arrays_and_products
from pymortests.strategies import vector_arrays
......@@ -47,3 +48,7 @@ def test_method_of_snapshots_with_product(operator_with_arrays_and_products, met
U.scal(s)
UsVh = U.lincomb(Vh.T)
assert np.all(almost_equal(A, UsVh, rtol=4e-8))
if __name__ == "__main__":
runmodule(filename=__file__)
......@@ -290,5 +290,6 @@ def test_parabolic_mor_results():
(1e-13, 4.), 'errors', 'max_errors', 'rel_errors', 'max_rel_errors',
'estimates', 'max_estimates', 'effectivities', 'min_effectivities', 'max_effectivities', 'errors')
if __name__ == "__main__":
runmodule(filename=__file__)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment