Skip to content

Commit f37c928

Browse files
authored
Turn off random seeding for ANTs brain extraction
This would make the brain extraction results fully replicable when used with `--omp-nthreads 1`. See #917
1 parent 0c220e1 commit f37c928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fmriprep/workflows/anatomical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def init_skullstrip_ants_wf(skull_strip_template, debug, omp_nthreads, name='sku
545545

546546
t1_skull_strip = pe.Node(
547547
BrainExtraction(dimension=3, use_floatingpoint_precision=1, debug=debug,
548-
keep_temporary_files=1),
548+
keep_temporary_files=1, use_random_seeding=False),
549549
name='t1_skull_strip', n_procs=omp_nthreads)
550550

551551
t1_skull_strip.inputs.brain_template = brain_template

0 commit comments

Comments
 (0)