File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed
Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ dependencies:
77 - " ~/docker"
88
99 pre :
10- - pip install coverage
1110 - mkdir -p "~/scratch/nose"
11+
1212 override :
1313 - if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
1414 - docker build -t nipype/testbench:latest . :
Original file line number Diff line number Diff line change 264264datasource = pe .Node (nio .DataGrabber (infields = ['subject_id' ],
265265 outfields = ['func' , 'struct' ]),
266266 name = 'datasource' )
267- datasource .inputs .template = '%s/%s.nii'
267+ datasource .inputs .template = 'nipype-tutorial/data/ %s/%s.nii'
268268datasource .inputs .template_args = info
269269datasource .inputs .sort_filelist = True
270270
275275 outfields = ['struct' ]),
276276 name = 'datasource_dartel' ,
277277 iterfield = ['subject_id' ])
278- datasource_dartel .inputs .template = '%s/%s.nii'
278+ datasource_dartel .inputs .template = 'nipype-tutorial/data/ %s/%s.nii'
279279datasource_dartel .inputs .template_args = dict (struct = [['subject_id' , 'struct' ]])
280280datasource_dartel .inputs .sort_filelist = True
281281datasource_dartel .inputs .subject_id = subject_list
Original file line number Diff line number Diff line change 5656and shared across users, projects and labs.
5757
5858
59- Setup preprocessing workflow
60- ----------------------------
59+ Example of how to inline functions in connect()
60+ -----------------------------------------------
61+
62+ """
63+ def _template_path (in_data ):
64+ return op .abspath (op .join (in_data , 'nipype-tutorial/data/T1.nii' ))
65+
66+
67+ """
68+
69+ Set-up preprocessing workflow
70+ -----------------------------
6171
6272This is a generic preprocessing workflow that can be used by different analyses
6373
@@ -482,13 +492,6 @@ def getstripdir(subject_id):
482492 ('residual_image' , 'residual_image' )]),
483493 ])
484494
485- """
486- Inlining functions in connect()
487- -------------------------------
488- """
489- def _template_path (in_data ):
490- return op .abspath (op .join (in_data , 'nipype-tutorial/data/T1.nii' ))
491-
492495
493496"""
494497Execute the second level pipeline
You can’t perform that action at this time.
0 commit comments