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
ac9f8f5f
Commit
ac9f8f5f
authored
May 05, 2021
by
Michiel Cottaar
Browse files
basisFile can also be a Path object
parent
79d68ffb
Pipeline
#8345
passed with stages
in 10 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/utils/synthetic/synthetic_from_basis.py
View file @
ac9f8f5f
...
...
@@ -12,6 +12,7 @@ from fsl_mrs.utils import mrs_io
from
fsl_mrs.utils.baseline
import
prepare_baseline_regressor
from
fsl_mrs.core
import
MRS
from
fsl_mrs.utils
import
models
from
pathlib
import
Path
def
standardConcentrations
(
basisNames
):
...
...
@@ -57,7 +58,7 @@ def prep_mrs_for_synthetic(basisFile, points, bandwidth, ignore, ind_scaling, co
metabolites in the basis file can be ignored or independently scaled.
"""
if
isinstance
(
basisFile
,
str
):
if
isinstance
(
basisFile
,
(
str
,
Path
)
):
basis
,
names
,
header
=
mrs_io
.
read_basis
(
basisFile
)
else
:
basis
,
names
,
header
=
basisFile
...
...
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