|
1 | 1 | from __future__ import annotations
|
2 | 2 |
|
3 |
| -import os |
4 |
| -import typing as ty |
5 |
| - |
6 |
| -import nibabel as nb |
7 | 3 | import nipype.interfaces.utility as niu
|
8 | 4 | import nipype.pipeline.engine as pe
|
9 |
| -from niworkflows.interfaces.header import ValidateImage |
10 | 5 | from niworkflows.interfaces.nibabel import GenerateSamplingReference
|
11 | 6 | from niworkflows.interfaces.utility import KeySelect
|
12 |
| -from niworkflows.utils.connections import listify |
13 |
| - |
14 |
| -from fmriprep import config |
15 | 7 |
|
16 | 8 | from ...interfaces.resampling import (
|
17 | 9 | DistortionParameters,
|
18 | 10 | ReconstructFieldmap,
|
19 | 11 | ResampleSeries,
|
20 | 12 | )
|
21 |
| -from ...utils.misc import estimate_bold_mem_usage |
22 |
| -from .stc import init_bold_stc_wf |
23 |
| -from .t2s import init_bold_t2s_wf, init_t2s_reporting_wf |
24 |
| - |
25 |
| -if ty.TYPE_CHECKING: |
26 |
| - from niworkflows.utils.spaces import SpatialReferences |
27 | 13 |
|
28 | 14 |
|
29 | 15 | def init_bold_volumetric_resample_wf(
|
@@ -130,32 +116,6 @@ def init_bold_volumetric_resample_wf(
|
130 | 116 | return workflow
|
131 | 117 |
|
132 | 118 |
|
133 |
| -def init_bold_apply_wf( |
134 |
| - *, |
135 |
| - spaces: SpatialReferences, |
136 |
| - name: str = 'bold_apply_wf', |
137 |
| -) -> pe.Workflow: |
138 |
| - """TODO: Docstring""" |
139 |
| - from smriprep.workflows.outputs import init_template_iterator_wf |
140 |
| - |
141 |
| - workflow = pe.Workflow(name=name) |
142 |
| - |
143 |
| - if spaces.is_cached() and spaces.cached.references: |
144 |
| - template_iterator_wf = init_template_iterator_wf(spaces=spaces) |
145 |
| - # TODO: Refactor bold_std_trans_wf |
146 |
| - # bold_std_trans_wf = init_bold_std_trans_wf( |
147 |
| - # freesurfer=config.workflow.run_reconall, |
148 |
| - # mem_gb=mem_gb["resampled"], |
149 |
| - # omp_nthreads=config.nipype.omp_nthreads, |
150 |
| - # spaces=spaces, |
151 |
| - # multiecho=multiecho, |
152 |
| - # use_compression=not config.execution.low_mem, |
153 |
| - # name="bold_std_trans_wf", |
154 |
| - # ) |
155 |
| - |
156 |
| - return workflow |
157 |
| - |
158 |
| - |
159 | 119 | def _gen_inverses(inlist: list) -> list[bool]:
|
160 | 120 | """Create a list indicating the first transform should be inverted.
|
161 | 121 |
|
|
0 commit comments