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
a5fcdf8e
Commit
a5fcdf8e
authored
Jan 11, 2021
by
William Clarke
Browse files
Code formatting.
parent
467521eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/scripts/fsl_mrs
View file @
a5fcdf8e
...
...
@@ -206,7 +206,7 @@ def main():
'Please either set it or include it in data header'
))
if
args
.
dwell_time
is
not
None
:
bw
=
1
/
args
.
dwell_time
bw
=
1
/
args
.
dwell_time
elif
dataheader
[
'bandwidth'
]
is
not
None
:
bw
=
dataheader
[
'bandwidth'
]
if
args
.
verbose
:
...
...
@@ -218,7 +218,7 @@ def main():
# Fix case where basis file contains no header info (e.g. .RAW)
if
basisheader
is
None
:
basisheader
=
{
'bandwidth'
:
bw
,
'dwelltime'
:
1
/
bw
,
'dwelltime'
:
1
/
bw
,
'centralFrequency'
:
cf
}
else
:
basisheader
=
basisheader
[
0
]
...
...
@@ -282,7 +282,7 @@ def main():
if
not
args
.
verbose
:
print
(
'Adding macromolecules'
)
nMM
=
mrs
.
add_MM_peaks
(
gamma
=
10
,
sigma
=
20
)
G
=
[
i
+
max
(
metab_groups
)
+
1
for
i
in
range
(
nMM
)]
G
=
[
i
+
max
(
metab_groups
)
+
1
for
i
in
range
(
nMM
)]
metab_groups
+=
G
# Choose fitting lineshape model.
...
...
@@ -311,7 +311,7 @@ def main():
# Quantification
# Echo time
if
args
.
TE
is
not
None
:
echotime
=
args
.
TE
*
1E-3
echotime
=
args
.
TE
*
1E-3
elif
'meta'
in
basisheader
:
if
'TE'
in
basisheader
[
'meta'
]:
echotime
=
basisheader
[
'meta'
][
'TE'
]
...
...
@@ -355,7 +355,7 @@ def main():
# Report on the fitting
if
args
.
verbose
:
duration
=
stop
-
start
duration
=
stop
-
start
print
(
f
' Fitting lasted :
{
duration
:
.
3
f
}
secs.
\n
'
)
# Save output files
if
args
.
verbose
:
...
...
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