Skip to content

Commit 6d80e92

Browse files
committed
Merge branch 'master' of github.com:nipreps/nibabies into pr/278
2 parents c818f54 + a89a099 commit 6d80e92

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/pytest.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
source /tmp/venv/bin/activate
4646
pytest -sv --doctest-modules --cov nibabies --cov-report xml nibabies
4747
- name: Submit coverage
48-
run: |
49-
# Pin codecov version to reduce scope for malicious updates
50-
python -m pip install "codecov==2.1.11"
51-
python -m codecov --file coverage.xml
48+
uses: codecov/codecov-action@v3
49+
with:
50+
files: coverage.xml

nibabies/interfaces/mcribs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ def _setup_directory_structure(self, mcribs_dir: Path) -> None:
183183
surfrec.parent.mkdir(**mkdir_kw)
184184
if not surfrec.exists():
185185
surfrec.symlink_to(f'../../../RawT2/{sid}.nii.gz')
186+
187+
if self.inputs.surfrecon:
188+
# Create FreeSurfer layout to safeguard against cd-ing into missing directories
189+
for d in ('surf', 'mri', 'label', 'scripts', 'stats'):
190+
(root / 'freesurfer' / sid / d).mkdir(**mkdir_kw)
191+
186192
# TODO?: T1w -> <subject_id>/RawT1RadiologicalIsotropic/<subjectid>.nii.gz
187193
return
188194

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ maint = [
6565
]
6666
test = [
6767
"coverage",
68-
"codecov",
6968
"pytest",
7069
"pytest-cov",
7170
"pytest-env",

0 commit comments

Comments
 (0)