Skip to content

Commit ef1b898

Browse files
committed
refactor: update references from fmriprep to petprep
1 parent 527432d commit ef1b898

25 files changed

+82
-82
lines changed

petprep/cli/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def _reference_frame(value, parser):
630630
default=False,
631631
help='Opt-out of sending tracking information of this run to '
632632
'the PETPREP developers. This information helps to '
633-
'improve FMRIPREP and provides an indicator of real '
633+
'improve PETPrep and provides an indicator of real '
634634
'world usage crucial for obtaining funding.',
635635
)
636636
g_other.add_argument(

petprep/cli/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
tracker.start()
5555

5656
if 'pdb' in config.execution.debug:
57-
from fmriprep.utils.debug import setup_exceptionhook
57+
from petprep.utils.debug import setup_exceptionhook
5858

5959
setup_exceptionhook()
6060
config.nipype.plugin = 'Linear'
@@ -205,7 +205,7 @@ def main():
205205
config.loggers.workflow.log(25, f'Saving logs at: {config.execution.log_dir}')
206206
config.loggers.workflow.log(25, f'Carbon emissions: {emissions} kg')
207207

208-
from fmriprep.reports.core import generate_reports
208+
from petprep.reports.core import generate_reports
209209

210210
# Generate reports phase
211211
session_list = (

petprep/cli/tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _mock_check_latest(*args, **kwargs):
117117
msg = f"""\
118118
You are using fMRIPrep-{current}, and a newer version of fMRIPrep is available: {latest}.
119119
Please check out our documentation about how and when to upgrade:
120-
https://fmriprep.readthedocs.io/en/latest/faq.html#upgrading"""
120+
https://petprep.readthedocs.io/en/latest/faq.html#upgrading"""
121121

122122
assert (msg in captured) is expectation
123123

petprep/cli/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def build_workflow(config_file, retval):
3838
from niworkflows.utils.bids import collect_participants
3939
from niworkflows.utils.misc import check_valid_fs_license
4040

41-
from fmriprep.reports.core import generate_reports
42-
from fmriprep.utils.bids import check_pipeline_version
41+
from petprep.reports.core import generate_reports
42+
from petprep.utils.bids import check_pipeline_version
4343

4444
from .. import config, data
4545
from ..utils.misc import check_deps

petprep/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
:caption: **Example file representation of PETPrep settings**.
3838
3939
This config file is used to pass the settings across processes,
40-
using the :py:func:`~fmriprep.config.load` function.
40+
using the :py:func:`~petprep.config.load` function.
4141
4242
Configuration sections
4343
----------------------

petprep/interfaces/reports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ def _generate_segment(self):
211211

212212

213213
class AboutSummaryInputSpec(BaseInterfaceInputSpec):
214-
version = Str(desc='FMRIPREP version')
215-
command = Str(desc='FMRIPREP command')
214+
version = Str(desc='PETPrep version')
215+
command = Str(desc='PETPrep command')
216216
# Date not included - update timestamp only if version or command changes
217217

218218

petprep/interfaces/tests/test_bids.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"""Tests for fmriprep.interfaces.bids."""
1+
"""Tests for petprep.interfaces.bids."""
22

33

44
def test_BIDSURI():
55
"""Test the BIDSURI interface."""
6-
from fmriprep.interfaces.bids import BIDSURI
6+
from petprep.interfaces.bids import BIDSURI
77

88
dataset_links = {
99
'raw': '/data',

petprep/interfaces/tests/test_confounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pandas as pd
55
from nipype.pipeline import engine as pe
66

7-
from fmriprep.interfaces import confounds
7+
from petprep.interfaces import confounds
88

99

1010
def test_RenameACompCor(tmp_path, data_dir):

petprep/interfaces/tests/test_maths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import numpy as np
33
from nipype.pipeline import engine as pe
44

5-
from fmriprep.interfaces.maths import Clip
5+
from petprep.interfaces.maths import Clip
66

77

88
def test_Clip(tmp_path):

petprep/interfaces/workbench.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ class VolumeToSurfaceMapping(WBCommand, OpenMPCommandMixin):
569569
intended to be larger than where the cylinder cutoff should have been.
570570
571571
Examples:
572-
>>> from fmriprep.interfaces.workbench import VolumeToSurfaceMapping
572+
>>> from petprep.interfaces.workbench import VolumeToSurfaceMapping
573573
>>> vol2surf = VolumeToSurfaceMapping()
574574
>>> vol2surf.inputs.volume_file = 'bold.nii.gz'
575575
>>> vol2surf.inputs.surface_file = 'lh.midthickness.surf.gii'
@@ -659,7 +659,7 @@ class MetricMask(WBCommand):
659659
660660
Examples
661661
662-
>>> from fmriprep.interfaces.workbench import MetricMask
662+
>>> from petprep.interfaces.workbench import MetricMask
663663
>>> metric_mask = MetricMask()
664664
>>> metric_mask.inputs.in_file = 'lh.bold.func.gii'
665665
>>> metric_mask.inputs.mask = 'lh.roi.shape.gii'
@@ -725,7 +725,7 @@ class MetricFillHoles(WBCommand):
725725
726726
Examples
727727
728-
>>> from fmriprep.interfaces.workbench import MetricFillHoles
728+
>>> from petprep.interfaces.workbench import MetricFillHoles
729729
>>> fill_holes = MetricFillHoles()
730730
>>> fill_holes.inputs.surface_file = 'lh.midthickness.surf.gii'
731731
>>> fill_holes.inputs.metric_file = 'lh.roi.shape.gii'
@@ -792,7 +792,7 @@ class MetricRemoveIslands(WBCommand):
792792
793793
Examples
794794
795-
>>> from fmriprep.interfaces.workbench import MetricRemoveIslands
795+
>>> from petprep.interfaces.workbench import MetricRemoveIslands
796796
>>> remove_islands = MetricRemoveIslands()
797797
>>> remove_islands.inputs.surface_file = 'lh.midthickness.surf.gii'
798798
>>> remove_islands.inputs.metric_file = 'lh.roi.shape.gii'

0 commit comments

Comments
 (0)