Skip to content

Commit 5588db4

Browse files
committed
ENH: uodate fmriprep to petprep
1 parent 1c74489 commit 5588db4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

petprep/workflows/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# https://www.nipreps.org/community/licensing/
2222
#
2323
"""
24-
fMRIPrep base processing workflows
24+
PETPrep base processing workflows
2525
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
2727
.. autofunction:: init_fmriprep_wf
@@ -166,12 +166,12 @@ def init_single_subject_wf(subject_id: str):
166166
init_resample_surfaces_wf,
167167
)
168168

169-
from fmriprep.workflows.pet.base import init_pet_wf
169+
from petprep.workflows.pet.base import init_pet_wf
170170

171171
workflow = Workflow(name=f'sub_{subject_id}_wf')
172172
workflow.__desc__ = f"""
173173
Results included in this manuscript come from preprocessing
174-
performed using *fMRIPrep* {config.environment.version}
174+
performed using *PETPrep* {config.environment.version}
175175
(@fmriprep1; @fmriprep2; RRID:SCR_016216),
176176
which is based on *Nipype* {config.environment.nipype_version}
177177
(@nipype1; @nipype2; RRID:SCR_002502).
@@ -544,7 +544,7 @@ def init_single_subject_wf(subject_id: str):
544544
for pet_series in pet_runs:
545545
pet_cache = {}
546546
if config.execution.derivatives:
547-
from fmriprep.utils.bids import collect_derivatives, extract_entities
547+
from petprep.utils.bids import collect_derivatives, extract_entities
548548

549549
entities = extract_entities(pet_series)
550550

petprep/workflows/pet/fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def init_pet_fit_wf(
122122
"""
123123
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
124124

125-
from fmriprep.utils.misc import estimate_pet_mem_usage
125+
from petprep.utils.misc import estimate_pet_mem_usage
126126

127127
if precomputed is None:
128128
precomputed = {}

petprep/workflows/pet/outputs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
3131
from niworkflows.utils.images import dseg_label
3232

33-
from fmriprep import config
34-
from fmriprep.config import DEFAULT_MEMORY_MIN_GB
35-
from fmriprep.interfaces import DerivativesDataSink
36-
from fmriprep.interfaces.bids import BIDSURI
33+
from petprep import config
34+
from petprep.config import DEFAULT_MEMORY_MIN_GB
35+
from petprep.interfaces import DerivativesDataSink
36+
from petprep.interfaces.bids import BIDSURI
3737

3838

3939
def prepare_timing_parameters(metadata: dict):

0 commit comments

Comments
 (0)