Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsl_mrs
Commits
35dbff08
Commit
35dbff08
authored
Apr 01, 2022
by
William Clarke
Browse files
Fix tests.
parent
ee4f2277
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/tests/test_utils_basis_tools.py
View file @
35dbff08
...
...
@@ -28,7 +28,9 @@ def test_convert_lcmodel(tmp_path):
new_basis
=
mrs_io
.
read_basis
(
out_loc
)
assert
basis
.
names
==
new_basis
.
names
assert
np
.
allclose
(
basis
.
original_basis_array
,
new_basis
.
original_basis_array
)
# Check that a conjugation has taken place. This is an annoying hack at the moment because
# fsl_mrs_sim has the wrong handedness.
assert
np
.
allclose
(
basis
.
original_basis_array
,
new_basis
.
original_basis_array
.
conj
())
assert
np
.
isclose
(
basis
.
original_bw
,
new_basis
.
original_bw
)
assert
np
.
isclose
(
basis
.
cf
,
new_basis
.
cf
)
...
...
Write
Preview
Supports
Markdown
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