Skip to content

Commit 261c8ab

Browse files
committed
MNT: Drop templateflow patches after smriprep changes
1 parent 68902bd commit 261c8ab

File tree

4 files changed

+6
-290
lines changed

4 files changed

+6
-290
lines changed

nibabies/utils/patches.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

nibabies/workflows/anatomical/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ def init_infant_anat_wf(
8383
GIFTI surfaces (gray/white boundary, midthickness, pial, inflated)
8484
"""
8585
from nipype.interfaces.ants.base import Info as ANTsInfo
86+
from smriprep.workflows.norm import init_anat_norm_wf
8687

8788
from ...utils.misc import fix_multi_source_name
8889
from .brain_extraction import init_infant_brain_extraction_wf
89-
from .norm import init_anat_norm_wf
9090
from .outputs import (
9191
init_anat_derivatives_wf,
9292
init_anat_reports_wf,

nibabies/workflows/anatomical/norm.py

Lines changed: 0 additions & 263 deletions
This file was deleted.

nibabies/workflows/anatomical/outputs.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ def init_anat_reports_wf(*, freesurfer, output_dir, sloppy, name="anat_reports_w
123123
_rpt_masks,
124124
)
125125

126-
from ...utils.patches import set_tf_resolution
127-
128126
workflow = Workflow(name=name)
129127

130128
inputfields = [
@@ -177,10 +175,11 @@ def init_anat_reports_wf(*, freesurfer, output_dir, sloppy, name="anat_reports_w
177175
# fmt: on
178176

179177
# Generate reportlets showing spatial normalization
180-
tf_select = pe.Node(TemplateFlowSelect(), name="tf_select", run_without_submitting=True)
181-
182-
set_tf_res = pe.Node(niu.Function(function=set_tf_resolution), name="set_tf_res")
183-
set_tf_res.inputs.sloppy = sloppy
178+
tf_select = pe.Node(
179+
TemplateFlowSelect(resolution=1),
180+
name="tf_select",
181+
run_without_submitting=True,
182+
)
184183

185184
norm_msk = pe.Node(
186185
niu.Function(
@@ -201,8 +200,6 @@ def init_anat_reports_wf(*, freesurfer, output_dir, sloppy, name="anat_reports_w
201200

202201
# fmt: off
203202
workflow.connect([
204-
(inputnode, set_tf_res, [(('template', _drop_cohort), 'template')]),
205-
(set_tf_res, tf_select, [('out', 'resolution')]),
206203
(inputnode, tf_select, [(('template', _drop_cohort), 'template'),
207204
(('template', _pick_cohort), 'cohort')]),
208205
(inputnode, norm_rpt, [('template', 'before_label')]),

0 commit comments

Comments
 (0)