Skip to content

Commit ade61a3

Browse files
committed
✅ Check for HarvardOxford-lateral-ventricles-thr25-2mm.nii.gz
1 parent cb986d7 commit ade61a3

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

CPAC/utils/interfaces/tests/test_fsl.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1+
# Copyright (C) 2021-2023 C-PAC Developers
2+
3+
# This file is part of C-PAC.
4+
5+
# C-PAC is free software: you can redistribute it and/or modify it under
6+
# the terms of the GNU Lesser General Public License as published by the
7+
# Free Software Foundation, either version 3 of the License, or (at your
8+
# option) any later version.
9+
10+
# C-PAC is distributed in the hope that it will be useful, but WITHOUT
11+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13+
# License for more details.
14+
15+
# You should have received a copy of the GNU Lesser General Public
16+
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
17+
# pylint: disable=invalid-name
18+
"""Tests for FSL interface"""
19+
import os
20+
from pathlib import Path
121
from ..fsl import Merge
222

323

24+
def test_HO_ventricles_exists():
25+
"""Make sure we have this required file
26+
Ref https://github.com/FCP-INDI/C-PAC/pull/1916#issuecomment-1579286459"""
27+
assert (Path(os.environ["FSLDIR"]) /
28+
'data/atlases/HarvardOxford/'
29+
'HarvardOxford-lateral-ventricles-thr25-2mm.nii.gz').exists()
30+
31+
432
def test_Merge_inputs():
533
input_map = dict(
634
args=dict(
@@ -51,4 +79,4 @@ def test_Merge_outputs():
5179

5280
for key, metadata in list(output_map.items()):
5381
for metakey, value in list(metadata.items()):
54-
assert getattr(outputs.traits()[key], metakey) == value
82+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)