Skip to content

Commit 08b382f

Browse files
committed
fixing paths for fmri_spm_dartel and fmri_spm_nested
1 parent 2f78e69 commit 08b382f

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

circle.yml

+1-1
Original file line numberDiff line numberDiff 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 . :

examples/fmri_spm_dartel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
datasource = 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'
268268
datasource.inputs.template_args = info
269269
datasource.inputs.sort_filelist = True
270270

@@ -275,7 +275,7 @@
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'
279279
datasource_dartel.inputs.template_args = dict(struct=[['subject_id', 'struct']])
280280
datasource_dartel.inputs.sort_filelist = True
281281
datasource_dartel.inputs.subject_id = subject_list

examples/fmri_spm_nested.py

+12-9
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,18 @@
5656
and 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
6272
This 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
"""
494497
Execute the second level pipeline

0 commit comments

Comments
 (0)