Skip to content

Commit afc110d

Browse files
authored
Merge pull request #247 from nipreps/fix/b0field-identifier
FIX: Implement ``B0FieldIdentifier`` / ``B0FieldSource``
2 parents 0e19395 + 6dbfbcb commit afc110d

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

+169
-46
lines changed

sdcflows/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@
4040
}
4141

4242
data_dir = Path(__file__).parent / "tests" / "data"
43-
44-
layouts["dsA"] = BIDSLayout(data_dir / "dsA", validate=False, derivatives=False)
45-
layouts["dsB"] = BIDSLayout(data_dir / "dsB", validate=False, derivatives=False)
43+
layouts.update({
44+
folder.name: BIDSLayout(folder, validate=False, derivatives=False)
45+
for folder in data_dir.glob("ds*") if folder.is_dir()
46+
})
4647

4748

4849
def pytest_report_header(config):
@@ -66,6 +67,7 @@ def add_np(doctest_namespace):
6667

6768
doctest_namespace["dsA_dir"] = data_dir / "dsA"
6869
doctest_namespace["dsB_dir"] = data_dir / "dsB"
70+
doctest_namespace["dsC_dir"] = data_dir / "dsC"
6971

7072

7173
@pytest.fixture
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Name": "Test Dataset A, only empty files",
3+
"BIDSVersion": "",
4+
"License": "CC0",
5+
"Authors": ["Esteban O."],
6+
"Acknowledgements": "",
7+
"HowToAcknowledge": "",
8+
"Funding": "",
9+
"ReferencesAndLinks": [""],
10+
"DatasetDOI": ""
11+
}

sdcflows/tests/data/dsC/sub-01/anat/sub-01_FLAIR.nii.gz

Whitespace-only changes.

sdcflows/tests/data/dsC/sub-01/anat/sub-01_T1w.nii.gz

Whitespace-only changes.

sdcflows/tests/data/dsC/sub-01/anat/sub-01_T2w.nii.gz

Whitespace-only changes.

sdcflows/tests/data/dsC/sub-01/dwi/sub-01_dir-AP_dwi.nii.gz

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"PhaseEncodingDirection": "j-",
3+
"TotalReadoutTime": 0.005
4+
}

sdcflows/tests/data/dsC/sub-01/dwi/sub-01_dir-AP_sbref.nii.gz

Whitespace-only changes.

sdcflows/tests/data/dsC/sub-01/dwi/sub-01_dir-LR_dwi.nii.gz

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"PhaseEncodingDirection": "i",
3+
"TotalReadoutTime": 0.005
4+
}

0 commit comments

Comments
 (0)