-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] Update docstring for fixed_seed to ref None option #104
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,7 +149,9 @@ def _get_parser(): | |
parser.add_argument('--seed', | ||
dest='fixed_seed', | ||
type=int, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will break with None. Also (and this might not matter to anyone), but typing |
||
help='Seeded value for ICA, for reproducibility.', | ||
help=('Value passed to repr(mdp.numx_rand.seed()) ' | ||
'Set to an integer value for reproducible ICA results; ' | ||
'otherwise, set to -1 for varying results across calls.'), | ||
default=42) | ||
parser.add_argument('--debug', | ||
dest='debug', | ||
|
@@ -228,7 +230,9 @@ def tedana_workflow(data, tes, mixm=None, ctab=None, manacc=None, strict=False, | |
Other Parameters | ||
---------------- | ||
fixed_seed : :obj:`int`, optional | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. :obj: |
||
Seeded value for ICA, for reproducibility. | ||
Value passed to ``mdp.numx_rand.seed()``. | ||
Set to a positive integer value for reproducible ICA results; | ||
otherwise, set to -1 for varying results across calls. | ||
debug : :obj:`bool`, optional | ||
Whether to run in debugging mode or not. Default is False. | ||
quiet : :obj:`bool`, optional | ||
|
@@ -388,9 +392,9 @@ def tedana_workflow(data, tes, mixm=None, ctab=None, manacc=None, strict=False, | |
t2s, t2sG, stabilize, ref_img, | ||
tes=tes, kdaw=kdaw, rdaw=rdaw, | ||
ste=ste, wvpca=wvpca) | ||
mmix_orig = decomposition.tedica(n_components, dd, conv, fixed_seed, | ||
cost=initcost, final_cost=finalcost, | ||
verbose=debug) | ||
mmix_orig, fixed_seed = decomposition.tedica(n_components, dd, conv, fixed_seed, | ||
cost=initcost, final_cost=finalcost, | ||
verbose=debug) | ||
np.savetxt(op.join(out_dir, '__meica_mix.1D'), mmix_orig) | ||
LGR.info('Making second component selection guess from ICA results') | ||
seldict, comptable, betas, mmix = model.fitmodels_direct(catd, mmix_orig, | ||
|
@@ -425,8 +429,8 @@ def tedana_workflow(data, tes, mixm=None, ctab=None, manacc=None, strict=False, | |
LGR.warning('No BOLD components detected! Please check data and ' | ||
'results!') | ||
|
||
utils.writeresults(OCcatd, mask, comptable, mmix, n_vols, acc, rej, midk, | ||
empty, ref_img) | ||
utils.writeresults(OCcatd, mask, comptable, mmix, fixed_seed, n_vols, | ||
acc, rej, midk, empty, ref_img) | ||
utils.gscontrol_mmix(OCcatd, mmix, mask, acc, ref_img) | ||
if dne: | ||
utils.writeresults_echoes(catd, mmix, mask, acc, rej, midk, ref_img) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:obj:
int
or :obj:None