From 4bb5c9f35a177d2671b5a1fb1e1b0225b1594950 Mon Sep 17 00:00:00 2001 From: Teal Hobson-Lowther Date: Tue, 18 Sep 2018 10:23:48 -0700 Subject: [PATCH] remove sub-emptyroom from inconsistent subject test --- tests/bids.spec.js | 1 - validators/session.js | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/bids.spec.js b/tests/bids.spec.js index 4dc454924..dc3b8b51d 100644 --- a/tests/bids.spec.js +++ b/tests/bids.spec.js @@ -28,7 +28,6 @@ var missing_session_files = [ 'ds109', 'ds113b', 'ds000117', - 'ds000246', 'ds000247', ] diff --git a/validators/session.js b/validators/session.js index 335139725..d1c1d7793 100644 --- a/validators/session.js +++ b/validators/session.js @@ -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] = []