Skip to content

Commit

Permalink
Merge pull request #573 from naveau/ce_label
Browse files Browse the repository at this point in the history
Add the ce label to anat type.spec and the corresponding test
  • Loading branch information
chrisgorgo authored Sep 20, 2018
2 parents 0ce020c + c832cf8 commit b6a52fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bids_validator/rules/file_level_rules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"anat": {
"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_@@@)$",
"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_@@@)$",
"tokens": {
"@@@_anat_suffixes_@@@": [
"T1w",
Expand Down
1 change: 1 addition & 0 deletions tests/type.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var suiteAnat = describe('utils.type.file.isAnat', function() {
'/sub-16/anat/sub-16_run-01_T1w.nii.gz',
'/sub-16/anat/sub-16_acq-highres_T1w.nii.gz',
'/sub-16/anat/sub-16_rec-mc_T1w.nii.gz',
'/sub-16/anat/sub-16_ce-contrastagent_T1w.nii.gz',
]

goodFilenames.forEach(function(path) {
Expand Down

0 comments on commit b6a52fb

Please sign in to comment.