Skip to content

Commit ffb2bbd

Browse files
committed
RF: Remove dead code
1 parent 71e57b8 commit ffb2bbd

File tree

6 files changed

+5
-1018
lines changed

6 files changed

+5
-1018
lines changed

fmriprep/workflows/bold/__init__.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,18 @@
1616
1717
"""
1818

19-
from .base import init_func_preproc_wf
2019
from .confounds import init_bold_confs_wf
2120
from .hmc import init_bold_hmc_wf
22-
from .registration import init_bold_reg_wf, init_bold_t1_trans_wf
23-
from .resampling import (
24-
init_bold_preproc_trans_wf,
25-
init_bold_std_trans_wf,
26-
init_bold_surf_wf,
27-
)
21+
from .registration import init_bold_reg_wf
22+
from .resampling import init_bold_surf_wf
2823
from .stc import init_bold_stc_wf
2924
from .t2s import init_bold_t2s_wf
3025

3126
__all__ = [
3227
'init_bold_confs_wf',
3328
'init_bold_hmc_wf',
34-
'init_bold_std_trans_wf',
35-
'init_bold_preproc_trans_wf',
3629
'init_bold_reg_wf',
3730
'init_bold_stc_wf',
3831
'init_bold_surf_wf',
39-
'init_bold_t1_trans_wf',
4032
'init_bold_t2s_wf',
41-
'init_func_preproc_wf',
4233
]

fmriprep/workflows/bold/apply.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,15 @@
11
from __future__ import annotations
22

3-
import os
4-
import typing as ty
5-
6-
import nibabel as nb
73
import nipype.interfaces.utility as niu
84
import nipype.pipeline.engine as pe
9-
from niworkflows.interfaces.header import ValidateImage
105
from niworkflows.interfaces.nibabel import GenerateSamplingReference
116
from niworkflows.interfaces.utility import KeySelect
12-
from niworkflows.utils.connections import listify
13-
14-
from fmriprep import config
157

168
from ...interfaces.resampling import (
179
DistortionParameters,
1810
ReconstructFieldmap,
1911
ResampleSeries,
2012
)
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
2713

2814

2915
def init_bold_volumetric_resample_wf(
@@ -130,32 +116,6 @@ def init_bold_volumetric_resample_wf(
130116
return workflow
131117

132118

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-
159119
def _gen_inverses(inlist: list) -> list[bool]:
160120
"""Create a list indicating the first transform should be inverted.
161121

0 commit comments

Comments
 (0)