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
Hossein Rafipoor
fsl_mrs
Commits
75725368
Commit
75725368
authored
Oct 08, 2020
by
William Clarke
Browse files
Change default to voigt, add option to mcmc optimise baseline.
parent
d9dc97b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/utils/fitting.py
View file @
75725368
...
...
@@ -273,10 +273,11 @@ def fit_FSLModel(mrs,
ppmlim
=
None
,
baseline_order
=
5
,
metab_groups
=
None
,
model
=
'
lorentzian
'
,
model
=
'
voigt
'
,
x0
=
None
,
MHSamples
=
500
,
disable_mh_priors
=
False
,
fit_baseline_mh
=
False
,
vb_iter
=
50
):
"""
A simplified version of LCModel
...
...
@@ -379,7 +380,7 @@ def fit_FSLModel(mrs,
p0
=
res
.
params
LB
,
UB
=
get_bounds
(
mrs
.
numBasis
,
g
,
baseline_order
,
model
,
method
,
disableBaseline
=
disableBaseline
)
mask
=
get_fitting_mask
(
mrs
.
numBasis
,
g
,
baseline_order
,
model
,
fit_baseline
=
False
)
mask
=
get_fitting_mask
(
mrs
.
numBasis
,
g
,
baseline_order
,
model
,
fit_baseline
=
fit_baseline_mh
)
# Check that the values initilised by the newton
# method don't exceed these bounds (unlikely but possible with bad data)
...
...
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