Skip to content

Commit b2dd98e

Browse files
authored
Merge pull request #905 from bids-standard/tsv_custom_columns_update
Small updates to bring in line with spec.
2 parents 5261944 + c4fa945 commit b2dd98e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bids-validator/bids_validator/rules/top_level_rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"func_top": {
3-
"regexp": "^\\/(?:ses-[a-zA-Z0-9]+_)?(?:recording-[a-zA-Z0-9]+_)?task-[a-zA-Z0-9]+(?:_acq-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_echo-[0-9]+)?(@@@_func_top_ext_@@@)$",
3+
"regexp": "^\\/(?:ses-[a-zA-Z0-9]+_)?(?:recording-[a-zA-Z0-9]+_)?task-[a-zA-Z0-9]+(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_dir-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_echo-[0-9]+)?(@@@_func_top_ext_@@@)$",
44
"tokens": {
55
"@@@_func_top_ext_@@@": [
66
"_bold\\.json",

bids-validator/bids_validator/tsv/non_custom_columns.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"value"
4040
],
4141
"misc": [],
42-
"participants": ["participant_id"],
42+
"participants": ["participant_id", "age", "sex"],
4343
"phenotype": ["participant_id"],
4444
"scans": ["acq_time", "filename"],
4545
"sessions": ["acq_time", "session_id"]

bids-validator/tests/bids.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('BIDS example datasets ', function() {
134134
errors.findIndex(error => error.code === 60) > -1,
135135
'errors do not contain a code 60',
136136
)
137-
assert.deepEqual(warnings.length, 4)
137+
assert.deepEqual(warnings.length, 3)
138138
assert(
139139
warnings.findIndex(warning => warning.code === 13) > -1,
140140
'warnings do not contain a code 13',

0 commit comments

Comments
 (0)