@@ -38,8 +38,8 @@ def build_workflow(config_file, retval):
38
38
from niworkflows .utils .bids import collect_participants
39
39
from niworkflows .utils .misc import check_valid_fs_license
40
40
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
43
43
44
44
from .. import config , data
45
45
from ..utils .misc import check_deps
@@ -54,18 +54,18 @@ def build_workflow(config_file, retval):
54
54
retval ['return_code' ] = 1
55
55
retval ['workflow' ] = None
56
56
57
- banner = [f'Running fMRIPrep version { version } ' ]
57
+ banner = [f'Running PETPrep version { version } ' ]
58
58
notice_path = data .load .readable ('NOTICE' )
59
59
if notice_path .exists ():
60
60
banner [0 ] += '\n '
61
61
banner += [f'License NOTICE { "#" * 50 } ' ]
62
- banner += [f'fMRIPrep { version } ' ]
62
+ banner += [f'PETPrep { version } ' ]
63
63
banner += notice_path .read_text ().splitlines (keepends = False )[1 :]
64
64
banner += ['#' * len (banner [1 ])]
65
65
build_log .log (25 , f'\n { " " * 9 } ' .join (banner ))
66
66
67
67
# warn if older results exist: check for dataset_description.json in output folder
68
- msg = check_pipeline_version ('fMRIPrep ' , version , petprep_dir / 'dataset_description.json' )
68
+ msg = check_pipeline_version ('PETPrep ' , version , petprep_dir / 'dataset_description.json' )
69
69
if msg is not None :
70
70
build_log .warning (msg )
71
71
@@ -108,7 +108,7 @@ def build_workflow(config_file, retval):
108
108
109
109
# Build main workflow
110
110
init_msg = [
111
- "Building fMRIPrep 's workflow:" ,
111
+ "Building PETPrep 's workflow:" ,
112
112
f'BIDS dataset path: { config .execution .bids_dir } .' ,
113
113
f'Participant list: { subject_list } .' ,
114
114
f'Run identifier: { config .execution .run_uuid } .' ,
@@ -133,13 +133,13 @@ def build_workflow(config_file, retval):
133
133
build_log .critical (
134
134
"""\
135
135
ERROR: Federal Information Processing Standard (FIPS) mode is enabled on your system. \
136
- FreeSurfer (and thus fMRIPrep ) cannot be used in FIPS mode. \
136
+ FreeSurfer (and thus PETPrep ) cannot be used in FIPS mode. \
137
137
Contact your system administrator for assistance."""
138
138
)
139
139
else :
140
140
build_log .critical (
141
141
"""\
142
- ERROR: a valid license file is required for FreeSurfer to run. fMRIPrep looked for an existing \
142
+ ERROR: a valid license file is required for FreeSurfer to run. PETPrep looked for an existing \
143
143
license file at several paths, in this order: 1) command line argument ``--fs-license-file``; \
144
144
2) ``$FS_LICENSE`` environment variable; and 3) the ``$FREESURFER_HOME/license.txt`` path. Get it \
145
145
(for free) by registering at https://surfer.nmr.mgh.harvard.edu/registration.html"""
0 commit comments