Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pymor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
pyMOR
pymor
Commits
92265bb1
Commit
92265bb1
authored
Apr 14, 2020
by
René Fritze
Committed by
René Fritze
Jun 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] make for files runnable
parent
9d3849bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
src/pymortests/algorithms/gram_schmidt.py
src/pymortests/algorithms/gram_schmidt.py
+5
-0
src/pymortests/algorithms/svd_va.py
src/pymortests/algorithms/svd_va.py
+5
-0
src/pymortests/demos.py
src/pymortests/demos.py
+1
-0
No files found.
src/pymortests/algorithms/gram_schmidt.py
View file @
92265bb1
...
...
@@ -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__
)
src/pymortests/algorithms/svd_va.py
View file @
92265bb1
...
...
@@ -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__
)
src/pymortests/demos.py
View file @
92265bb1
...
...
@@ -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__
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment