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
f1a7fc29
Commit
f1a7fc29
authored
Oct 29, 2021
by
William Clarke
Browse files
Add mh samples option to fsl_mrs.
parent
8329d2ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.rst
View file @
f1a7fc29
...
...
@@ -8,6 +8,7 @@ This document contains the FSL-MRS release history in reverse chronological orde
- Dynamic fitting now handles multiple different basis sets.
- Fix mapped parameter uncertainties in dynamic MRS results.
- Dynamic fitting results can now be saved to and loaded from a directory.
- Added MH sample option to fsl_mrs, matches interactive python interface.
1.1.8 (Tuesday 5th October 2021)
-------------------------------
...
...
fsl_mrs/scripts/fsl_mrs
View file @
f1a7fc29
...
...
@@ -85,6 +85,10 @@ def main():
' independently of other basis spectra.'
)
fitting_args
.
add_argument
(
'--disable_MH_priors'
,
action
=
"store_true"
,
help
=
"Disable MH priors."
)
fitting_args
.
add_argument
(
'--mh_samples'
,
type
=
int
,
default
=
500
,
help
=
"Number of Metropolis Hastings samples,"
" every tenth sample is kept."
" Default = 500"
)
# ADDITIONAL OPTIONAL ARGUMENTS
optional
.
add_argument
(
'--t1'
,
type
=
str
,
default
=
None
,
metavar
=
'IMAGE'
,
...
...
@@ -274,14 +278,16 @@ def main():
'baseline_order'
:
args
.
baseline_order
,
'metab_groups'
:
metab_groups
,
'model'
:
'lorentzian'
,
'disable_mh_priors'
:
args
.
disable_MH_priors
}
'disable_mh_priors'
:
args
.
disable_MH_priors
,
'MHSamples'
:
args
.
mh_samples
}
else
:
Fitargs
=
{
'ppmlim'
:
ppmlim
,
'method'
:
args
.
algo
,
'baseline_order'
:
args
.
baseline_order
,
'metab_groups'
:
metab_groups
,
'model'
:
'voigt'
,
'disable_mh_priors'
:
args
.
disable_MH_priors
}
'disable_mh_priors'
:
args
.
disable_MH_priors
,
'MHSamples'
:
args
.
mh_samples
}
if
args
.
verbose
:
print
(
mrs
)
...
...
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