Skip to content

Commit a9338d0

Browse files
committed
Update surfaces.py
1 parent 87547b7 commit a9338d0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/smriprep/workflows/surfaces.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ def init_cortex_masks_wf(
12361236

12371237
# Native ROI is thickness > 0, with holes and islands filled
12381238
initial_roi = pe.Node(
1239-
MetricMath(metric='roi', operation='bin'),
1239+
MetricMath(metric='roi', operation='bin', hemisphere=hemi),
12401240
name=f'initial_roi_{hemi}',
12411241
)
12421242
fill_holes = pe.Node(
@@ -1245,17 +1245,13 @@ def init_cortex_masks_wf(
12451245
mem_gb=DEFAULT_MEMORY_MIN_GB,
12461246
)
12471247
native_roi = pe.Node(
1248-
MetricRemoveIslands(),
1248+
MetricRemoveIslands(hemisphere=hemi),
12491249
name=f'native_roi_{hemi}',
12501250
mem_gb=DEFAULT_MEMORY_MIN_GB,
12511251
)
12521252

12531253
workflow.connect([
1254-
(inputnode, abs_thickness, [
1255-
('hemi', 'hemisphere'),
1256-
('thickness', 'metric_file'),
1257-
]),
1258-
(inputnode, initial_roi, [('hemi', 'hemisphere')]),
1254+
(inputnode, abs_thickness, [('thickness', 'metric_file')]),
12591255
(abs_thickness, initial_roi, [('metric_file', 'metric_file')]),
12601256
(inputnode, fill_holes, [('midthickness', 'surface_file')]),
12611257
(inputnode, native_roi, [('midthickness', 'surface_file')]),

0 commit comments

Comments
 (0)