Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
d68bf1c0
Commit
d68bf1c0
authored
May 04, 2022
by
Patrick Buchfink
Browse files
Fixed renaming parameters in pymortests algorithms symplectic
parent
f63e02e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymortests/algorithms/symplectic.py
View file @
d68bf1c0
...
...
@@ -16,7 +16,7 @@ METHODS_DICT = {
KEYS_ORTHOSYMPL_METHOD
=
[
'psd_cotengent_lift'
,
'psd_complex_svd'
]
@
pytest
.
mark
.
parametrize
(
'key_
basis_gen_
method'
,
METHODS_DICT
.
keys
())
@
pytest
.
mark
.
parametrize
(
'key_method'
,
METHODS_DICT
.
keys
())
def
test_symplecticity
(
key_method
):
"""Check symplecticity of symplectic basis generation methods."""
half_dim
=
1000
...
...
@@ -30,7 +30,7 @@ def test_symplecticity(key_method):
assert
np
.
allclose
(
tis_basis
.
to_array
().
inner
(
basis
.
to_array
()),
np
.
eye
(
modes
))
@
pytest
.
mark
.
parametrize
(
'key_orthosympl_
basis_gen_
method'
,
KEYS_ORTHOSYMPL_METHOD
)
@
pytest
.
mark
.
parametrize
(
'key_orthosympl_method'
,
KEYS_ORTHOSYMPL_METHOD
)
def
test_orthonormality
(
key_orthosympl_method
):
"""Check orthonormality for orthosymplectic basis generation methods."""
half_dim
=
1000
...
...
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