Skip to content

Commit

Permalink
remove sub-emptyroom from inconsistent subject test
Browse files Browse the repository at this point in the history
  • Loading branch information
olgn committed Sep 18, 2018
1 parent 3733cb0 commit 4bb5c9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/bids.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ var missing_session_files = [
'ds109',
'ds113b',
'ds000117',
'ds000246',
'ds000247',
]

Expand Down
7 changes: 7 additions & 0 deletions validators/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ var session = function missingSessionFiles(fileList) {
} else {
subject = match[0]
}

// suppress inconsistent subject warnings for sub-emptyroom scans
// in MEG data
if (subject == 'sub-emptyroom') {
continue
}

// initialize an empty array if we haven't seen this subject before
if (typeof subjects[subject] === 'undefined') {
subjects[subject] = []
Expand Down

0 comments on commit 4bb5c9f

Please sign in to comment.