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
ee4f2277
Commit
ee4f2277
authored
Apr 01, 2022
by
William Clarke
Browse files
Fix lcmodel conversion conjugation issue. Closes issue 16.
parent
11175885
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/utils/basis_tools.py
View file @
ee4f2277
...
...
@@ -38,7 +38,10 @@ def convert_lcm_basis(path_to_basis, output_location=None):
# 1. Read LCModel basis
basis
=
mrs_io
.
read_basis
(
path_to_basis
)
# 2. Write to new location
# 2. Conjugate to preserve the sense w.r.t. FSL-MRS useage.
basis
=
conjugate_basis
(
basis
)
# 3. Write to new location
sim_info
=
f
'Converted from
{
str
(
path_to_basis
)
}
'
if
output_location
is
None
:
basis
.
save
(
path_to_basis
.
stem
,
info_str
=
sim_info
)
...
...
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