forked from aramis-lab/clinicadl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix BIDS file format for pet (aramis-lab#545)
* fix BIDS file format * unit test pet_linear_nii
- Loading branch information
1 parent
1d789af
commit a8f2ea5
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"acq_label,suvr_reference_region,uncropped_image,expected_pattern", | ||
[ | ||
( | ||
"18FFDG", | ||
"cerebellumPons2", | ||
True, | ||
"pet_linear/*_trc-18FFDG_space-MNI152NLin2009cSym_res-1x1x1_suvr-cerebellumPons2_pet.nii.gz", | ||
), | ||
( | ||
"18FAV45", | ||
"pons", | ||
False, | ||
"pet_linear/*_trc-18FAV45_space-MNI152NLin2009cSym_desc-Crop_res-1x1x1_suvr-pons_pet.nii.gz", | ||
), | ||
], | ||
) | ||
def test_pet_linear_nii( | ||
acq_label, suvr_reference_region, uncropped_image, expected_pattern | ||
): | ||
from clinicadl.utils.clinica_utils import pet_linear_nii | ||
|
||
assert pet_linear_nii(acq_label, suvr_reference_region, uncropped_image) == { | ||
"description": "", | ||
"needed_pipeline": "pet-linear", | ||
"pattern": expected_pattern, | ||
} |