Skip to content

Commit

Permalink
maint: load reportlets interfaces from nireports rather than niworkflows
Browse files Browse the repository at this point in the history
  • Loading branch information
celprov committed Dec 7, 2023
1 parent f310950 commit 2a924cb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fmriprep/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
)
from nipype.utils.filemanip import fname_presuffix
from niworkflows.utils.timeseries import _cifti_timeseries, _nifti_timeseries
from niworkflows.viz.plots import fMRIPlot
from nireports.reportlets.modality.func import fMRIPlot

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

Expand Down
2 changes: 1 addition & 1 deletion fmriprep/interfaces/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
isdefined,
traits,
)
from niworkflows.interfaces.reportlets import base as nrb
from nireports.interfaces.reporting import base as nrb
from smriprep.interfaces.freesurfer import ReconAll

LOGGER = logging.getLogger('nipype.interface')
Expand Down
2 changes: 1 addition & 1 deletion fmriprep/workflows/bold/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def init_bold_confs_wf(
from niworkflows.interfaces.nibabel import ApplyMask, Binarize
from niworkflows.interfaces.patches import RobustACompCor as ACompCor
from niworkflows.interfaces.patches import RobustTCompCor as TCompCor
from niworkflows.interfaces.plotting import (
from nireports.interfaces.nuisance import (
CompCorVariancePlot,
ConfoundsCorrelationPlot,
)
Expand Down
1 change: 0 additions & 1 deletion fmriprep/workflows/bold/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from niworkflows.interfaces.header import ValidateImage
from niworkflows.interfaces.nitransforms import ConcatenateXFMs
from niworkflows.interfaces.utility import KeySelect
from niworkflows.utils.connections import listify
from sdcflows.workflows.apply.correction import init_unwarp_wf
from sdcflows.workflows.apply.registration import init_coeff2epi_wf

Expand Down
2 changes: 1 addition & 1 deletion fmriprep/workflows/bold/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def init_func_fit_reports_wf(
Template space and specifications
"""
from niworkflows.interfaces.reportlets.registration import (
from nireports.interfaces.reporting.base import (
SimpleBeforeAfterRPT as SimpleBeforeAfter,
)
from sdcflows.interfaces.reportlets import FieldmapReportlet
Expand Down
2 changes: 1 addition & 1 deletion fmriprep/workflows/bold/t2s.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def init_t2s_reporting_wf(name: str = 't2s_reporting_wf'):
"""
from nipype.pipeline import engine as pe
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
from niworkflows.interfaces.reportlets.registration import (
from nireports.interfaces.reporting.base import (
SimpleBeforeAfterRPT as SimpleBeforeAfter,
)

Expand Down

0 comments on commit 2a924cb

Please sign in to comment.