Skip to content

Commit c832cf8

Browse files
committed
Add the ce label to anat type.spec and the corresponding test
1 parent 0ce020c commit c832cf8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bids_validator/rules/file_level_rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"anat": {
3-
"regexp": "^\\/(sub-[a-zA-Z0-9]+)\\/(?:(ses-[a-zA-Z0-9]+)\\/)?anat\\/\\1(_\\2)?(?:_acq-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?_(?:@@@_anat_suffixes_@@@).(@@@_anat_ext_@@@)$",
3+
"regexp": "^\\/(sub-[a-zA-Z0-9]+)\\/(?:(ses-[a-zA-Z0-9]+)\\/)?anat\\/\\1(_\\2)?(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?_(?:@@@_anat_suffixes_@@@).(@@@_anat_ext_@@@)$",
44
"tokens": {
55
"@@@_anat_suffixes_@@@": [
66
"T1w",

tests/type.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var suiteAnat = describe('utils.type.file.isAnat', function() {
1313
'/sub-16/anat/sub-16_run-01_T1w.nii.gz',
1414
'/sub-16/anat/sub-16_acq-highres_T1w.nii.gz',
1515
'/sub-16/anat/sub-16_rec-mc_T1w.nii.gz',
16+
'/sub-16/anat/sub-16_ce-contrastagent_T1w.nii.gz',
1617
]
1718

1819
goodFilenames.forEach(function(path) {

0 commit comments

Comments
 (0)