File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ var suite = describe('BIDS example datasets ', function() {
103103 var options = { ignoreNiftiHeaders : false } ;
104104 validate . BIDS ( "tests/data/valid_filenames" , options , function ( issues ) {
105105 var errors = issues . errors ;
106- assert ( errors [ 0 ] . code === '58' , errors [ 2 ] . code === '66' ) ;
106+ assert ( errors [ 0 ] . code === '58' ) ;
107107 isdone ( ) ;
108108 } ) ;
109109 } ) ;
Original file line number Diff line number Diff line change @@ -316,10 +316,5 @@ module.exports = {
316316 key : 'SESSION_VALUE_CONTAINS_ILLEGAL_CHARECTER' ,
317317 severity : 'error' ,
318318 reason : 'Ses label contain an Illegal Character hyphen or underscore. Please edit the filename as per BIDS spec.' ,
319- } ,
320- 66 : {
321- key : 'NO_BIDS_SPECIFIC_FILES_IN_SUBJECT_DIRECTORY' ,
322- severity : 'error' ,
323- reason : 'These files are not as per bids and are stored under sub- directory. Please refer latest BIDS spec for correct filename and organization.'
324319 }
325320} ;
Original file line number Diff line number Diff line change @@ -160,8 +160,6 @@ BIDS = {
160160 size : 0
161161 } ;
162162
163- var subjectSpecificFiles = true ; //it assumes that there are subject specific files under each subject directory
164-
165163
166164 // check for illegal character in task name and acq name
167165
@@ -181,11 +179,6 @@ BIDS = {
181179
182180 async . eachOfLimit ( fileList , 200 , function ( file ) {
183181 var completename = utils . files . relativePath ( file ) ;
184- if ( completename . startsWith ( '/sub-' ) ) {
185- if ( ! ( file . name . startsWith ( 'sub' ) ) ) {
186- subjectSpecificFiles = false ;
187- }
188- }
189182 if ( ! ( completename . startsWith ( '/derivatives' ) || completename . startsWith ( '/code' ) || completename . startsWith ( '/sourcedata' ) ) ) {
190183 for ( var re_index = 0 ; re_index < illegalchar_regex_list . length ; re_index ++ ) {
191184 var err_regex = illegalchar_regex_list [ re_index ] [ 0 ] ;
@@ -231,14 +224,6 @@ BIDS = {
231224 evidence : file . name ,
232225 code : 1
233226 } ) ) ;
234- //this will check if files under sub-* directory are not as per BIDS std
235- if ( ! subjectSpecificFiles ) {
236- self . issues . push ( new Issue ( {
237- file : file ,
238- evidence : file . name ,
239- code : 66
240- } ) ) ;
241- }
242227 process . nextTick ( cb ) ;
243228 }
244229
You can’t perform that action at this time.
0 commit comments