Skip to content

Commit b248ae6

Browse files
authored
MNT: Load reportlets interfaces from nireports rather than niworkflows (#3184)
Reverts #3182, restoring #3176.
1 parent aa5b948 commit b248ae6

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

fmriprep/interfaces/confounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
traits,
4848
)
4949
from nipype.utils.filemanip import fname_presuffix
50+
from nireports.reportlets.modality.func import fMRIPlot
5051
from niworkflows.utils.timeseries import _cifti_timeseries, _nifti_timeseries
51-
from niworkflows.viz.plots import fMRIPlot
5252

5353
LOGGER = logging.getLogger('nipype.interface')
5454

fmriprep/interfaces/reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
isdefined,
4040
traits,
4141
)
42-
from niworkflows.interfaces.reportlets import base as nrb
42+
from nireports.interfaces.reporting import base as nrb
4343
from smriprep.interfaces.freesurfer import ReconAll
4444

4545
LOGGER = logging.getLogger('nipype.interface')

fmriprep/workflows/bold/confounds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def init_bold_confs_wf(
146146
Mask of brain edge voxels
147147
148148
"""
149+
from nireports.interfaces.nuisance import (
150+
CompCorVariancePlot,
151+
ConfoundsCorrelationPlot,
152+
)
149153
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
150154
from niworkflows.interfaces.confounds import ExpandModel, SpikeRegressors
151155
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
@@ -154,10 +158,6 @@ def init_bold_confs_wf(
154158
from niworkflows.interfaces.nibabel import ApplyMask, Binarize
155159
from niworkflows.interfaces.patches import RobustACompCor as ACompCor
156160
from niworkflows.interfaces.patches import RobustTCompCor as TCompCor
157-
from niworkflows.interfaces.plotting import (
158-
CompCorVariancePlot,
159-
ConfoundsCorrelationPlot,
160-
)
161161
from niworkflows.interfaces.reportlets.masks import ROIsPlot
162162
from niworkflows.interfaces.utility import TSV2JSON, AddTSVHeader, DictMerge
163163

fmriprep/workflows/bold/fit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from niworkflows.interfaces.header import ValidateImage
3232
from niworkflows.interfaces.nitransforms import ConcatenateXFMs
3333
from niworkflows.interfaces.utility import KeySelect
34-
from niworkflows.utils.connections import listify
3534
from sdcflows.workflows.apply.correction import init_unwarp_wf
3635
from sdcflows.workflows.apply.registration import init_coeff2epi_wf
3736

fmriprep/workflows/bold/outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def init_func_fit_reports_wf(
185185
Template space and specifications
186186
187187
"""
188-
from niworkflows.interfaces.reportlets.registration import (
188+
from nireports.interfaces.reporting.base import (
189189
SimpleBeforeAfterRPT as SimpleBeforeAfter,
190190
)
191191
from sdcflows.interfaces.reportlets import FieldmapReportlet

fmriprep/workflows/bold/t2s.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ def init_t2s_reporting_wf(name: str = 't2s_reporting_wf'):
168168
a before/after figure comparing the reference BOLD image and T2\* map
169169
"""
170170
from nipype.pipeline import engine as pe
171-
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
172-
from niworkflows.interfaces.reportlets.registration import (
171+
from nireports.interfaces.reporting.base import (
173172
SimpleBeforeAfterRPT as SimpleBeforeAfter,
174173
)
174+
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
175175

176176
workflow = pe.Workflow(name=name)
177177

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies = [
2222
"looseversion",
2323
"nibabel >= 4.0.1",
2424
"nipype >= 1.8.5",
25-
"nireports >= 23.1.0",
25+
"nireports @ git+https://github.com/nipreps/nireports.git@main",
2626
"nitime",
2727
"nitransforms >= 21.0.0",
2828
"niworkflows @ git+https://github.com/nipreps/niworkflows.git@master",

0 commit comments

Comments
 (0)