@@ -133,14 +133,14 @@ class ExtractROIBasedSurfaceMeasuresInputSpec(SPMCommandInputSpec):
133
133
lh_roi_atlas = InputMultiPath (File (exists = True ), field = "rdata" , desc = "(Left) ROI Atlas. These are the ROI's " ,
134
134
mandatory = True , copyfile = False )
135
135
136
+ rh_roi_atlas = InputMultiPath (File (exists = True ), desc = "(Right) ROI Atlas. These are the ROI's " ,
137
+ mandatory = False , copyfile = False )
138
+
136
139
lh_surface_measure = InputMultiPath (File (exists = True ), field = "cdata" , desc = "(Left) Surface data files. " ,
137
140
mandatory = True , copyfile = False )
138
141
rh_surface_measure = InputMultiPath (File (exists = True ), desc = "(Right) Surface data files." ,
139
142
mandatory = False , copyfile = False )
140
143
141
- rh_roi_atlas = InputMultiPath (File (exists = True ), desc = "(Right) ROI Atlas. These are the ROI's " ,
142
- mandatory = False , copyfile = False )
143
-
144
144
145
145
class ExtractROIBasedSurfaceMeasuresOutputSpec (TraitedSpec ):
146
146
label_files = List (File (exists = True ), desc = "Files with the measures extracted for ROIs." )
@@ -194,13 +194,12 @@ def _format_arg(self, opt, spec, val):
194
194
def _list_outputs (self ):
195
195
outputs = self ._outputs ().get ()
196
196
197
- outputs ["label_files" ] = []
198
- for f in self .inputs .lh_roi_atlas :
199
- pth , base , ext = split_filename (f )
197
+ pth , base , ext = split_filename (self .inputs .lh_surface_measure [0 ])
200
198
201
- outputs ["label_files" ].extend ([os .path .join (os .path .join (pth , "label" ), f ) for f in
202
- os .listdir (os .path .join (pth , "label" ))
203
- if os .path .isfile (os .path .join (os .path .join (pth , "label" ), f ))])
199
+ outputs ["label_files" ] = [os .path .join (os .path .join (pth , "label" ), f ) for f in
200
+ os .listdir (os .path .join (pth , "label" ))
201
+ if os .path .isfile (os .path .join (os .path .join (pth , "label" ), f ))]
202
+ return outputs
204
203
205
204
206
205
class Cell :
@@ -227,4 +226,3 @@ def __str__(self):
227
226
"""Convert input to appropriate format for cat12
228
227
"""
229
228
return "{%s}" % self .to_string ()
230
-
0 commit comments