Skip to content

Commit 25b92fb

Browse files
authored
Merge pull request #69 from jhlegarreta/ref/clean-fmriprep-code-refs
REF: Change references to fMRIPrep for PETPrep
2 parents f76d249 + 60f2252 commit 25b92fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3459
-171
lines changed

.versions.json

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,4 @@
11
{
22
"flagged": {
3-
"1.0.0": "Deprecated / too old",
4-
"1.0.1": "Phase-difference fieldmap bug",
5-
"1.0.2": "Phase-difference fieldmap bug",
6-
"1.0.3": "Phase-difference fieldmap bug",
7-
"1.0.4": "Phase-difference fieldmap bug",
8-
"1.0.5": "Phase-difference fieldmap bug",
9-
"1.0.6": "Phase-difference fieldmap bug",
10-
"1.0.6-1": "Phase-difference fieldmap bug",
11-
"1.0.6-2": "Phase-difference fieldmap bug",
12-
"1.0.7": "Phase-difference fieldmap bug",
13-
"1.0.8": "Phase-difference fieldmap bug",
14-
"1.0.9": "Phase-difference fieldmap bug",
15-
"1.0.10": "Phase-difference fieldmap bug",
16-
"1.0.11": "Phase-difference fieldmap bug",
17-
"1.0.12": "Phase-difference fieldmap bug",
18-
"1.0.13": "Phase-difference fieldmap bug",
19-
"1.0.14": "Phase-difference fieldmap bug",
20-
"1.0.15": "Phase-difference fieldmap bug",
21-
"1.1.0": "Phase-difference fieldmap bug",
22-
"1.1.1": "Phase-difference fieldmap bug",
23-
"1.1.2": "Phase-difference fieldmap bug",
24-
"1.1.3": "Phase-difference fieldmap bug",
25-
"1.1.4": "Phase-difference fieldmap bug",
26-
"1.1.5": "Phase-difference fieldmap bug",
27-
"1.1.6": "Phase-difference fieldmap bug",
28-
"1.1.7": "Phase-difference fieldmap bug",
29-
"1.1.8": "Phase-difference fieldmap bug",
30-
"1.2.0": "Phase-difference fieldmap bug",
31-
"1.2.1": "Phase-difference fieldmap bug",
32-
"1.2.2": "Phase-difference fieldmap bug",
33-
"1.2.3": "Phase-difference fieldmap bug",
34-
"1.2.4": "Phase-difference fieldmap bug",
35-
"1.2.5": "Phase-difference fieldmap bug",
36-
"1.2.6": "Phase-difference fieldmap bug",
37-
"1.2.6-1": "Phase-difference fieldmap bug",
38-
"1.3.0": "Phase-difference fieldmap bug",
39-
"1.3.0.post1": "Phase-difference fieldmap bug",
40-
"1.3.0.post2": "Phase-difference fieldmap bug",
41-
"1.3.0.post3": "Phase-difference fieldmap bug",
42-
"1.3.1": "Phase-difference fieldmap bug",
43-
"1.3.1.post1": "Phase-difference fieldmap bug",
44-
"1.3.1.post2": "Phase-difference fieldmap bug",
45-
"1.3.1.post3": "Phase-difference fieldmap bug",
46-
"1.3.1.post4": "Phase-difference fieldmap bug",
47-
"1.3.2": "Phase-difference fieldmap bug",
48-
"1.4.0a0": "Phase-difference fieldmap bug",
49-
"1.4.0a1": "Phase-difference fieldmap bug",
50-
"1.4.0": "Phase-difference fieldmap bug",
51-
"1.4.1rc1": "Phase-difference fieldmap bug",
52-
"1.4.1rc2": "Phase-difference fieldmap bug",
53-
"1.4.1rc3": "Phase-difference fieldmap bug",
54-
"1.4.1rc4": "Phase-difference fieldmap bug",
55-
"1.4.1rc5": "Phase-difference fieldmap bug",
56-
"1.4.1": "Phase-difference fieldmap bug",
57-
"1.5.0rc1": "Nipype unstable; Phase-difference fieldmap bug",
58-
"1.5.0rc2": "Nipype unstable; Phase-difference fieldmap bug",
59-
"1.5.0": "Nipype unstable; Phase-difference fieldmap bug",
60-
"1.5.1rc1": "Nipype unstable; Phase-difference fieldmap bug",
61-
"1.5.1rc2": "Nipype unstable; Phase-difference fieldmap bug",
62-
"1.5.1": "Phase-difference fieldmap bug",
63-
"1.5.2": "Phase-difference fieldmap bug",
64-
"1.5.3rc1": "Phase-difference fieldmap bug",
65-
"1.5.3rc2": "Phase-difference fieldmap bug",
66-
"1.5.3": "Phase-difference fieldmap bug",
67-
"1.5.4": "Phase-difference fieldmap bug",
68-
"1.5.5": "Phase-difference fieldmap bug",
69-
"1.5.6": "Phase-difference fieldmap bug",
70-
"1.5.7": "Phase-difference fieldmap bug",
71-
"1.5.8": "Phase-difference fieldmap bug",
72-
"1.5.9": "Phase-difference fieldmap bug",
73-
"20.0.0rc1": "fsLR resampling error (problematic only when using the --cifti-output flag); Phase-difference fieldmap bug",
74-
"20.0.0rc2": "fsLR resampling error (problematic only when using the --cifti-output flag); Phase-difference fieldmap bug",
75-
"20.0.0rc3": "fsLR resampling error (problematic only when using the --cifti-output flag); Phase-difference fieldmap bug",
76-
"20.0.0": "fsLR resampling error (problematic only when using the --cifti-output flag); Phase-difference fieldmap bug",
77-
"20.0.1": "fsLR resampling error (problematic only when using the --cifti-output flag); Phase-difference fieldmap bug",
78-
"20.0.2": "fsLR resampling error (problematic only when using the --cifti-output flag); Phase-difference fieldmap bug",
79-
"20.0.3": "Phase-difference fieldmap bug",
80-
"20.0.4": "Phase-difference fieldmap bug",
81-
"20.0.5": "Phase-difference fieldmap bug",
82-
"20.1.0rc1": "Phase-difference fieldmap bug",
83-
"20.1.0rc2": "Phase-difference fieldmap bug",
84-
"20.1.0": "Functional outputs in standard space can be wrong depending on the original data's orientation headers - see https://github.com/nipreps/fmriprep/issues/2307",
85-
"20.1.1": "Functional outputs in standard space can be wrong depending on the original data's orientation headers - see https://github.com/nipreps/fmriprep/issues/2307",
86-
"20.1.2": "Functional outputs in standard space can be wrong depending on the original data's orientation headers - see https://github.com/nipreps/fmriprep/issues/2307",
87-
"20.1.3": "Functional outputs in standard space can be wrong depending on the original data's orientation headers - see https://github.com/nipreps/fmriprep/issues/2307",
88-
"20.2.0": "Functional outputs in standard space can be wrong depending on the original data's orientation headers - see https://github.com/nipreps/fmriprep/issues/2307",
89-
"20.2.1": "Functional outputs in standard space can be wrong depending on the original data's orientation headers - see https://github.com/nipreps/fmriprep/issues/2307"
903
}
914
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Contributing to *fMRIPrep*
1+
# Contributing to *PETPrep*
22

33
*PETPrep* is a project of the [*NiPreps* Community, which specifies the contributing guidelines](https://www.nipreps.org/community/).

docs/_static/sbatch.slurm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ LOCAL_FREESURFER_DIR="$STUDY/data/derivatives/freesurfer-6.0.1"
1919

2020
# Prepare some writeable bind-mount points.
2121
TEMPLATEFLOW_HOST_HOME=$HOME/.cache/templateflow
22-
FMRIPREP_HOST_CACHE=$HOME/.cache/petprep
22+
PETPREP_HOST_CACHE=$HOME/.cache/petprep
2323
mkdir -p ${TEMPLATEFLOW_HOST_HOME}
24-
mkdir -p ${FMRIPREP_HOST_CACHE}
24+
mkdir -p ${PETPREP_HOST_CACHE}
2525

2626
# Prepare derivatives folder
2727
mkdir -p ${BIDS_DIR}/${DERIVS_DIR}

notebooks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# fmriprep-notebooks
2-
A repository for notebooks associated with FMRIPREP
1+
# petprep-notebooks
2+
A repository for notebooks associated with PETPrep

petprep/cli/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ def _bids_filter(value, parser):
674674
action='store_true',
675675
default=False,
676676
help='Opt-out of sending tracking information of this run to '
677-
'the PETPREP developers. This information helps to '
678-
'improve FMRIPREP and provides an indicator of real '
677+
'the PETPrep developers. This information helps to '
678+
'improve PETPrep and provides an indicator of real '
679679
'world usage crucial for obtaining funding.',
680680
)
681681
g_other.add_argument(

petprep/cli/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121
# https://www.nipreps.org/community/licensing/
2222
#
23-
"""fMRI preprocessing workflow."""
23+
"""PET preprocessing workflow."""
2424

2525
from .. import config
2626

petprep/cli/tests/test_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def mock_get(*args, **kwargs):
6262
monkeypatch.setattr(requests, 'get', mock_get)
6363

6464
# Initially, cache should not exist
65-
cachefile = Path.home() / '.cache' / 'fmriprep' / 'latest'
65+
cachefile = Path.home() / '.cache' / 'petprep' / 'latest'
6666
assert not cachefile.exists()
6767

6868
# First check actually fetches from pypi
@@ -156,7 +156,7 @@ def mock_get(*args, **kwargs):
156156
monkeypatch.setattr(requests, 'get', mock_get)
157157

158158
# Initially, cache should not exist
159-
cachefile = Path.home() / '.cache' / 'fmriprep' / 'latest'
159+
cachefile = Path.home() / '.cache' / 'petprep' / 'latest'
160160
cachefile.parent.mkdir(parents=True, exist_ok=True)
161161
assert not cachefile.exists()
162162

@@ -200,7 +200,7 @@ def mock_get(*args, **kwargs):
200200

201201

202202
def test_readonly(tmp_path, monkeypatch):
203-
"""Test behavior when $HOME/.cache/fmriprep/latest can't be written out."""
203+
"""Test behavior when $HOME/.cache/petprep/latest can't be written out."""
204204
home_path = Path('/home/readonly') if getenv('TEST_READONLY_FILESYSTEM') else tmp_path
205205
monkeypatch.setenv('HOME', str(home_path))
206206
cachedir = home_path / '.cache'
@@ -212,7 +212,7 @@ def test_readonly(tmp_path, monkeypatch):
212212

213213
# Make sure creating the folder will raise the exception.
214214
with pytest.raises(OSError, match=r'Read-only file system|Permission denied'):
215-
(cachedir / 'fmriprep').mkdir(parents=True)
215+
(cachedir / 'petprep').mkdir(parents=True)
216216

217217
# Should not raise
218218
check_latest()

petprep/cli/version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def check_latest():
4242
date = None
4343
outdated = None
4444
now = datetime.now(tz=timezone.utc)
45-
cachefile = Path.home() / '.cache' / 'fmriprep' / 'latest'
45+
cachefile = Path.home() / '.cache' / 'petprep' / 'latest'
4646
try:
4747
cachefile.parent.mkdir(parents=True, exist_ok=True)
4848
except OSError:
@@ -66,7 +66,7 @@ def check_latest():
6666
if latest is None or outdated is True:
6767
response = None
6868
with suppress(Exception):
69-
response = requests.get(url='https://pypi.org/pypi/fmriprep/json', timeout=1.0)
69+
response = requests.get(url='https://pypi.org/pypi/petprep/json', timeout=1.0)
7070

7171
if response and response.status_code == 200:
7272
versions = [Version(rel) for rel in response.json()['releases'].keys()]
@@ -85,13 +85,13 @@ def check_latest():
8585

8686
def is_flagged():
8787
"""Check whether current version is flagged."""
88-
# https://raw.githubusercontent.com/nipreps/fmriprep/master/.versions.json
88+
# https://raw.githubusercontent.com/nipreps/petprep/master/.versions.json
8989
flagged = ()
9090
response = None
9191
with suppress(Exception):
9292
response = requests.get(
9393
url="""\
94-
https://raw.githubusercontent.com/nipreps/fmriprep/master/.versions.json""",
94+
https://raw.githubusercontent.com/nipreps/petprep/master/.versions.json""",
9595
timeout=1.0,
9696
)
9797

petprep/cli/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
All the checks and the construction of the workflow are done
2727
inside this function that has pickleable inputs and output
2828
dictionary (``retval``) to allow isolation using a
29-
``multiprocessing.Process`` that allows fmriprep to enforce
29+
``multiprocessing.Process`` that allows petprep to enforce
3030
a hard-limited memory-scope.
3131
3232
"""

petprep/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def copytree_or_skip(source, target):
19-
data_dir = ir_files('fmriprep') / source
19+
data_dir = ir_files('petprep') / source
2020
if not data_dir.exists():
2121
pytest.skip(f'Cannot chdir into {data_dir!r}. Probably in a zipped distribution.')
2222

0 commit comments

Comments
 (0)