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
Michiel Cottaar
fsl_mrs
Commits
79d68ffb
Commit
79d68ffb
authored
May 04, 2021
by
Michiel Cottaar
Browse files
allow in-memory basis functions
parent
c79ceb9c
Pipeline
#8335
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/utils/synthetic/synthetic_from_basis.py
View file @
79d68ffb
...
...
@@ -57,7 +57,10 @@ def prep_mrs_for_synthetic(basisFile, points, bandwidth, ignore, ind_scaling, co
metabolites in the basis file can be ignored or independently scaled.
"""
basis
,
names
,
header
=
mrs_io
.
read_basis
(
basisFile
)
if
isinstance
(
basisFile
,
str
):
basis
,
names
,
header
=
mrs_io
.
read_basis
(
basisFile
)
else
:
basis
,
names
,
header
=
basisFile
empty_mrs
=
MRS
(
FID
=
np
.
ones
((
points
,)),
cf
=
header
[
0
][
'centralFrequency'
],
...
...
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