diff --git a/.gitignore b/.gitignore index 3c0cbc1..38d441e 100644 --- a/.gitignore +++ b/.gitignore @@ -84,7 +84,6 @@ instance/ # Sphinx documentation docs/_build/ -docs/_build/ # PyBuilder .pybuilder/ diff --git a/tests/all_tests.json b/tests/all_tests.json index 688451c..3aa1568 100644 --- a/tests/all_tests.json +++ b/tests/all_tests.json @@ -1,8 +1,14 @@ [ { "error_code": "CHARACTER_INVALID", - "name": "character-invalid-utf-8", + "alt_codes": [ + "TAG_INVALID", + "UNITS_INVALID", + "VALUE_INVALID" + ], + "name": "character-invalid-non-printing appears", "description": "The HED string contains a UTF-8 character.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11,7 +17,6 @@ "tests": { "string_tests": { "fails": [ - "Collection/[x]", "Item/Bl\b" ], "passes": [ @@ -132,8 +137,14 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "TAG_INVALID", + "UNITS_INVALID", + "VALUE_INVALID" + ], "name": "curly-braces-not-in-sidecar", "description": "The curly brace notation is used outside a sidecar.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -150,7 +161,18 @@ }, "sidecar_tests": { "fails": [], - "passes": [] + "passes": [ + { + "event_code": { + "HED": { + "face": "Statistical-accuracy/0.677, {response}" + } + }, + "response": { + "HED": "Label/#" + } + } + ] }, "event_tests": { "fails": [ @@ -190,8 +212,13 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "TAG_INVALID", + "VALUE_INVALID" + ], "name": "invalid-character-name-value-class", "description": "An invalid character was used in an 8.3.0 or greater style text value class.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -201,10 +228,14 @@ "string_tests": { "fails": [ "Parameter-label/[", - "Parameter-label/Taco*" + "Parameter-label/Taco*", + "Label/30$", + "Label/30db kg" ], "passes": [ - "Parameter-label/Words" + "Parameter-label/Words", + "Label/30e10", + "Label/3e10asdf" ] }, "sidecar_tests": { @@ -226,8 +257,58 @@ ] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Statistical-accuracy/1max1" + ] + ], + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Label/30$" + ] + ], + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Label/30db kg" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Label/3e10asdf" + ] + ] + ] }, "combo_tests": { "fails": [], @@ -237,8 +318,14 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "TAG_INVALID", + "UNITS_INVALID", + "VALUE_INVALID" + ], "name": "invalid-character-name-value-class-deprecated", "description": "An invalid character was used in an 8.2.0 or lower style text value class.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -285,8 +372,12 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "UNITS_INVALID" + ], "name": "invalid-character-numeric-class", "description": "An invalid character was used in an 8.3.0 or greater style numeric value class.", + "warning": false, "schema": "8.3.0", "definitions": [], "tests": { @@ -342,55 +433,12 @@ } } }, - { - "error_code": "CHARACTER_INVALID", - "name": "invalid-character-name-class", - "description": "An invalid character was used in an 8.3.0 or greater style numeric value class.", - "schema": "8.3.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [ - "Label/30$", - "Label/30db kg" - ], - "passes": [ - "Label/30e10", - "Label/3e10asdf" - ] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "show": "Label/3.0a" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": "Label/#" - } - } - ] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [], - "passes": [] - } - } - }, { "error_code": "COMMA_MISSING", + "alt_codes": [], "name": "comma-missing-tag-groups", "description": "Two tag groups are not separated by commas: (A, B)(C, D).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -545,8 +593,10 @@ }, { "error_code": "COMMA_MISSING", + "alt_codes": [], "name": "comma-missing-tag-and-group", "description": "A tag and a tag group are not separated by commas: A(B,D).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -696,8 +746,12 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], "name": "definition-invalid-tag-group", "description": "A Definition tag does not appear in a tag group at the top level in an annotation.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -790,8 +844,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-missing-inner-group", "description": "A definition's enclosing tag group is missing the inner tag group (i.e., the definition's contents).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -879,8 +935,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-multiple-definition-tags", "description": "A definition's enclosing tag group contains more than a `Definition` tag and an inner group.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -973,8 +1031,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-inner-group-defs", "description": "A definition's inner tag group contains `Definition`, `Def` or `Def-expand` tags.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1069,8 +1129,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-bad-number-of-placeholders", "description": "A definition that includes a placeholder (`#`) does not have exactly two `#` characters.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1161,8 +1223,12 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [ + "TAG_INVALID" + ], "name": "definition-invalid-placeholder-incorrect-of-positions", "description": "A definition has placeholders (`#`) in incorrect positions.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1253,8 +1319,12 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [ + "TAG_INVALID" + ], "name": "definition-invalid-placeholder-conflict", "description": "Definitions of the same name appear with and without a `#`.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1345,8 +1415,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-multiple-definitions", "description": "Multiple `Definition` tags with same name are encountered.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1445,12 +1517,13 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-has-unique-or-required-tag", "description": "A tag with a required or unique attribute appears in a definition.", + "warning": false, "schema": "8.3.0", "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Event-context, Item, (Label/Pie))" + "(Definition/Acc/#, (Acceleration/#, Red))" ], "tests": { "string_tests": { @@ -1537,8 +1610,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-not-allowed-here", "description": "A definition appears in an unexpected place such as an events file or sidecar.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1659,8 +1734,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-name-not-definition", "description": "A `Def-expand` tag's name does not correspond to a definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1811,8 +1888,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-missing-placeholder", "description": "A `Def-expand` is missing an expected placeholder value or has an unexpected placeholder value.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1987,8 +2066,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-bad-placeholder-units", "description": "A `Def-expand` has a placeholder value of incorrect format or units for definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2156,8 +2237,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-tags-not-in-definition", "description": "The tags within a Def-expand do not match the corresponding definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2319,8 +2402,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-missing-inner-group", "description": "A Def-expand is missing its inner group containing the definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2468,8 +2553,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-has-extras", "description": "A Def-expand has extra tags or groups.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2618,8 +2705,10 @@ }, { "error_code": "DEF_INVALID", + "alt_codes": [], "name": "def-invalid-name", "description": "A `Def` tag's name does not correspond to a definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2761,8 +2850,10 @@ }, { "error_code": "DEF_INVALID", + "alt_codes": [], "name": "def-invalid-missing-placeholder", "description": "A `Def` tag is missing an expected placeholder value or has an unexpected placeholder value.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2911,8 +3002,10 @@ }, { "error_code": "DEF_INVALID", + "alt_codes": [], "name": "def-invalid-bad-placeholder-units", "description": "A `Def` has a placeholder value of incorrect format or units for definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3083,6 +3176,7 @@ }, { "error_code": "ELEMENT_DEPRECATED", + "alt_codes": [], "name": "tag-deprecated", "description": "A tag is deprecated", "warning": true, @@ -3230,8 +3324,10 @@ }, { "error_code": "PARENTHESES_MISMATCH", + "alt_codes": [], "name": "parentheses-mismatch-unmatched-parentheses", "description": "A HED string does not have the same number of open and closed parentheses.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3380,8 +3476,10 @@ }, { "error_code": "PARENTHESES_MISMATCH", + "alt_codes": [], "name": "parentheses-mismatch-incorrect-nesting", "description": "The open and closed parentheses are not correctly nested in the HED string.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3530,8 +3628,10 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [], "name": "placeholder-invalid-misplaced", "description": "A `#` appears in a place that it should not (such as in the `HED` column of an event file outside a definition).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3670,8 +3770,10 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [], "name": "placeholder-invalid-#-in-categorical-column", "description": "A JSON sidecar has a placeholder (`#`) in the HED dictionary for a categorical column.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3778,8 +3880,10 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [], "name": "placeholder-invalid-json-value-column", "description": "A JSON sidecar does not have exactly one placeholder (`#`) in each HED string representing a value column.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3889,8 +3993,12 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [ + "TAG_EXTENSION_INVALID" + ], "name": "placeholder-invalid-json-#-misplaced", "description": "A placeholder (`#`) is used in JSON sidecar or definition, but its parent in the schema does not have a placeholder child.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3994,8 +4102,10 @@ }, { "error_code": "REQUIRED_TAG_MISSING", + "alt_codes": [], "name": "required-tag-missing", "description": "An event-level annotation does not have a tag corresponding to a node with the `required` schema attribute. (Note this is deprecated so no tests.)", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4022,8 +4132,10 @@ }, { "error_code": "REQUIRED_TAG_MISSING", + "alt_codes": [], "name": "required-tag-in-definition", "description": "A required tag appears in a definition", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -6892,8 +7004,12 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [ + "CHARACTER_INVALID" + ], "name": "sidecar-braces-contents-invalid", "description": "The item in curly braces is not the word HED or a column name with HED annotations in the sidecar.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -7018,9 +7134,15 @@ } }, { - "error_code": "VALUE_INVALID", + "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [ + "VALUE_INVALID", + "CHARACTER_INVALID", + "UNITS_INVALID" + ], "name": "sidecar-braces-invalid-spot", "description": "A curly brace reference must only appear where a tag could.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -7073,8 +7195,10 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [], "name": "sidecar-braces-circular-reference", "description": "The item in curly braces has a HED annotation that contains curly braces.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -7212,8 +7336,10 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [], "name": "sidecar-braces-self-reference", "description": "The item in curly braces has a HED annotation that contains itself.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -7385,8 +7511,14 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-self-reference", - "description": "The item in curly braces has a HED annotation that contains itself.", + "alt_codes": [ + "CHARACTER_INVALID", + "VALUE_INVALID", + "UNITS_INVALID" + ], + "name": "sidecar-braces-appear-as-value-rather-than-tag", + "description": "The curly braces are in a value rather than as a separate tag substitute.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -7402,41 +7534,38 @@ { "event_code": { "HED": { - "face": "(Red, Blue), (Green, (Yellow)), {HED}", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2)" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "Label/{response_time}, Black" } }, "response_time": { - "HED": "Label/#, {response_time}" + "Description": "Has description but no HED", + "HED": "Orange" } - } - ], - "passes": [ + }, { "event_code": { "HED": { "face": "(Red, Blue), (Green, (Yellow))", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" + "ball": "Label/{response_time}, Black" } }, "response_time": { - "Description": "Has description with HED", + "Description": "Has description but no HED", "HED": "Label/#" - }, - "response_count": { - "Description": "A count used to test curly braces in value columns.", - "HED": "(Item-count/#, {response_time})" } - }, + } + ], + "passes": [ { "event_code": { "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2, {response_action})" + "face": "(Red, Blue), ({response_time}, (Green, (Yellow)))", + "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" } }, - "response_action": { - "Description": "Does not correspond to curly braces", + "response_time": { + "Description": "Has description with HED", "HED": "Label/#" } } @@ -7453,47 +7582,42 @@ "event_code": { "HED": { "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2)" + "ball": "Label/{response_time}, (Def/Acc/3.5 m-per-s^2)" } }, "response_time": { "Description": "Has description with HED", - "HED": "Label/#, {response_time}" + "HED": "Orange" } }, "events": [ [ "onset", "duration", - "response_time", "event_code", "HED" ], [ 4.5, 0, - 3.4, "face", "Blue" ], [ 5.0, 0, - 6.8, "ball", "Green, Def/MyColor" ], [ 5.2, 0, - "n/a", "face", "" ], [ 5.5, 0, - "any", "face", "n/a" ] @@ -7518,37 +7642,37 @@ [ "onset", "duration", - "response_time", "event_code", - "HED" + "HED", + "response_time" ], [ 4.5, 0, - 3.4, "face", - "Blue" + "Blue", + 1 ], [ 5.0, 0, - 6.8, "ball", - "Green, Def/MyColor" + "Green, Def/MyColor", + 1 ], [ 5.2, 0, - "n/a", "face", - "" + "", + 1 ], [ 5.5, 0, - "any", "face", - "n/a" + "n/a", + 1 ] ] } @@ -7557,10 +7681,12 @@ } }, { - "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-appear-as-value-rather-than-tag", - "description": "The curly braces are in a value rather than as a separate tag substitute.", - "schema": "8.2.0", + "error_code": "SIDECAR_INVALID", + "alt_codes": [], + "name": "sidecar-invalid-key-at-wrong-level", + "description": "The HED key is not a second-level dictionary key.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -7574,26 +7700,18 @@ "fails": [ { "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "Label/{response_time}, Black" + "temp": { + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" + } } - }, - "response_time": { - "Description": "Has description but no HED", - "HED": "Orange" } }, { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "Label/{response_time}, Black" - } - }, - "response_time": { - "Description": "Has description but no HED", - "HED": "Label/#" + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } } ], @@ -7601,13 +7719,9 @@ { "event_code": { "HED": { - "face": "(Red, Blue), ({response_time}, (Green, (Yellow)))", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" } } ] @@ -7621,14 +7735,12 @@ { "sidecar": { "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "Label/{response_time}, (Def/Acc/3.5 m-per-s^2)" + "temp": { + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" + } } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Orange" } }, "events": [ @@ -7642,786 +7754,37 @@ 4.5, 0, "face", - "Blue" + "Red, Def/MyColor" ], [ 5.0, 0, "ball", - "Green, Def/MyColor" - ], - [ - 5.2, - 0, - "face", - "" - ], - [ - 5.5, - 0, - "face", - "n/a" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED", - "response_time" - ], - [ - 4.5, - 0, - "face", - "Blue", - 1 - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor", - 1 - ], - [ - 5.2, - 0, - "face", - "", - 1 - ], - [ - 5.5, - 0, - "face", - "n/a", - 1 - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-ref-not-hed-column", - "description": "Curly braces reference a column that exists, but isn't marked as hed data.", - "schema": "8.2.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{onset}" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "ball", - "Blue" - ] - ] - } - ], - "passes": [] - } - } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-ref-ignore-column", - "description": "Curly braces reference a column that exists, but is marked ignore.", - "schema": "8.2.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{onset}" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "ball", - "Blue" - ] - ] - } - ], - "passes": [] - } - } - }, - { - "error_code": "CHARACTER_INVALID", - "name": "sidecar-braces-in-events-file", - "description": "The curly braces appear in HED column of events file.", - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [ - "{HED}, Def/MyColor" - ], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "{who_knows}, Red" - ] - ] - ], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue, {response_time}" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ], - [ - 5.2, - 0, - "face", - "" - ], - [ - 5.5, - 0, - "face", - "n/a" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED", - "response_time" - ], - [ - 4.5, - 0, - "face", - "Blue", - 1 - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor", - 1 - ], - [ - 5.2, - 0, - "face", - "", - 1 - ], - [ - 5.5, - 0, - "face", - "n/a", - 1 - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_INVALID", - "name": "sidecar-invalid-key-at-wrong-level", - "description": "The HED key is not a second-level dictionary key.", - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "temp": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - } - }, - { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" - } - } - } - ] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "temp": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "ball", - "Green" - ] - ] - }, - { - "sidecar": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - }, - "events": [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "Green" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_INVALID", - "name": "sidecar-invalid-na-annotated", - "description": "An annotation entry is provided for `n/a`.", - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue),(Green, (Yellow))", - "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" - } - } - } - ] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue),(Green, (Yellow))", - "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "n/a", - "Green" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_KEY_MISSING", - "name": "sidecar-key-missing", - "description": "A value in a categorical column does not have an expected entry in a sidecar.", - "warning": true, - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "square", "Green" ] ] - } - ], - "passes": [ + }, { "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ] - ] - } - ] - } - } - }, - { - "error_code": "STYLE_WARNING", - "name": "style-warning-bad-naming-style", - "description": "An extension or label does not follow HED naming conventions.", - "warning": true, - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [ - "Red-color/red" - ], - "passes": [ - "Blue-color/Blue" - ] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Red/red_blech", - "ball": "Blue-color/blue" - } - } - } - ], - "passes": [ - { - "event_code": { "HED": { - "face": "Red-color/Red", - "ball": "Blue-color/Blue" - } - } - } - ] - }, - "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red/red_blech" - ], - [ - 5.0, - 0, - "Blue-color/blue" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red-color/Red" - ], - [ - 5.0, - 0, - "Blue-color/Blue" - ] - ] - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Red/red_blech", - "ball": "Blue-color/blue" - } + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } }, "events": [ [ "onset", "duration", - "event_code", "HED" ], [ 4.5, 0, - "face", "Red, Def/MyColor" ], [ 5.0, 0, - "ball", "Green" ] ] @@ -8432,8 +7795,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red-color/Red", - "ball": "Blue-color/Blue" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -8463,9 +7826,11 @@ } }, { - "error_code": "TAG_EMPTY", - "name": "tag-empty-extra-commas-or-parentheses", - "description": "A HED string has extra commas or parentheses separated by only white space.", + "error_code": "SIDECAR_INVALID", + "alt_codes": [], + "name": "sidecar-invalid-na-annotated", + "description": "An annotation entry is provided for `n/a`.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8473,26 +7838,16 @@ ], "tests": { "string_tests": { - "fails": [ - "Red, , , Green", - "(, Red, Green), Blue", - "(Red, , Green), Blue", - "(Red, Green,), Blue", - "(Red, Green), Blue," - ], - "passes": [ - "(Red, Blue), Green" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [ { "event_code": { "HED": { - "square": "Red, , , Green", - "test": "(, Red, Green), Blue", - "pine": "(Red, , Green), Blue", - "apple": "(Red, Green,), Blue" + "face": "(Red, Blue),(Green, (Yellow))", + "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } } } @@ -8501,68 +7856,25 @@ { "event_code": { "HED": { - "face": "Red, Blue", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" - } - } - } - ] - }, - "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 5.5, - 0, - "Red, , , Green" - ], - [ - 7.5, - 0, - "(, Red, Green), Blue" - ], - [ - 8.2, - 0, - "(Red, , Green), Blue" - ], - [ - 9.1, - 0, - "(Red, Green,), Blue" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red, (Blue, Green)" - ] - ] + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" + } + } + } ] }, + "event_tests": { + "fails": [], + "passes": [] + }, "combo_tests": { "fails": [ { "sidecar": { "event_code": { "HED": { - "square": "Red, , , Green", - "test": "(, Red, Green), Blue", - "pine": "(Red, , Green), Blue", - "apple": "(Red, Green,), Blue" + "face": "(Red, Blue),(Green, (Yellow))", + "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } } }, @@ -8576,13 +7888,13 @@ [ 4.5, 0, - "test", + "face", "Red, Def/MyColor" ], [ 5.0, 0, - "apple", + "n/a", "Green" ] ] @@ -8593,8 +7905,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red, Green", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -8624,9 +7936,11 @@ } }, { - "error_code": "TAG_EMPTY", - "name": "tag-empty-begin-end-comma", - "description": "A HED string begins or ends with a comma (ignoring white space).", + "error_code": "SIDECAR_INVALID", + "alt_codes": [], + "name": "curly-braces-has-no-hed", + "description": "A column name appears in curly braces, but that column name does not have a HED annotation.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8634,24 +7948,19 @@ ], "tests": { "string_tests": { - "fails": [ - ", Blue,Def/Acc/3.2 m-per-s^2", - "(Blue, Green),Yellow,", - ",,(Blue, Green),Yellow," - ], - "passes": [ - "(Red, Blue), Green" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [ { "event_code": { "HED": { - "face": ", Blue,Def/Acc/3.2 m-per-s^2", - "ball": "(Blue, Green),Yellow,", - "square": ",,(Blue, Green),Yellow," + "face": "Statistical-accuracy/0.677, {response}" } + }, + "response": { + "HED": "Label/#" } } ], @@ -8659,52 +7968,116 @@ { "event_code": { "HED": { - "face": "Red, Blue", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" + "face": "Statistical-accuracy/0.677, {response}" } + }, + "response": { + "HED": "Label/#" } } ] }, "event_tests": { + "fails": [], + "passes": [] + }, + "combo_tests": { "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - ", (Blue, Green),Yellow," - ], - [ - 5.5, - 0, - ",,(Blue, Green),Yellow," - ], - [ - 6.5, - 0, - ", Blue,Def/Acc/3.2 m-per-s^2" + { + "sidecar": { + "event_code": { + "HED": { + "face": "Statistical-accuracy/0.677, {response}" + } + }, + "response": "Label/#" + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "response", + "HED" + ], + [ + 4.5, + 0, + "face", + "yes", + "Red, Def/MyColor" + ], + [ + 5.0, + 0, + "ball", + "no", + "Green" + ] ] - ] + } ], "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red, (Blue, Green)" + { + "sidecar": { + "event_code": { + "HED": { + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "response", + "HED" + ], + [ + 4.5, + 0, + "face", + "yes", + "Red, Def/MyColor" + ], + [ + 5.0, + 0, + "ball", + "no", + "Green" + ] ] - ] + } ] + } + } + }, + { + "error_code": "SIDECAR_KEY_MISSING", + "alt_codes": [], + "name": "sidecar-key-missing", + "description": "A value in a categorical column does not have an expected entry in a sidecar.", + "warning": true, + "schema": "8.3.0", + "definitions": [ + "(Definition/Acc/#, (Acceleration/#, Red))", + "(Definition/MyColor, (Label/Pie))" + ], + "tests": { + "string_tests": { + "fails": [], + "passes": [] + }, + "sidecar_tests": { + "fails": [], + "passes": [] + }, + "event_tests": { + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ @@ -8712,9 +8085,8 @@ "sidecar": { "event_code": { "HED": { - "face": ", Blue,Def/Acc/3.2", - "ball": "(Blue, Green),Yellow,", - "square": ",,(Blue, Green),Yellow," + "face": "Acceleration/banana", + "ball": "Black, Blue" } } }, @@ -8734,7 +8106,7 @@ [ 5.0, 0, - "ball", + "square", "Green" ] ] @@ -8746,7 +8118,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7 m-per-s^2, Blue" } } }, @@ -8776,9 +8148,11 @@ } }, { - "error_code": "TAG_EMPTY", - "name": "tag-empty-empty-parentheses", - "description": "A tag group is empty (i.e., empty parentheses are not allowed).", + "error_code": "STYLE_WARNING", + "alt_codes": [], + "name": "style-warning-bad-naming-style", + "description": "An extension or label does not follow HED naming conventions.", + "warning": true, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8787,12 +8161,10 @@ "tests": { "string_tests": { "fails": [ - "(Red, (), (Blue), ((Green)))", - "((( ))), Red" + "Red-color/red" ], "passes": [ - "(Red, ( Blue ), ((Green)))", - "(((Def/Acc/3.5 m-per-s^2)))" + "Blue-color/Blue" ] }, "sidecar_tests": { @@ -8800,8 +8172,8 @@ { "event_code": { "HED": { - "face": "(Red, (), (Blue), ((Green)))", - "ball": "((( ))), Red" + "face": "Red/red_blech", + "ball": "Blue-color/blue" } } } @@ -8810,8 +8182,8 @@ { "event_code": { "HED": { - "face": "(Red, ( Blue ), ((Green)))", - "ball": "(((Def/Acc/3.5 m-per-s^2)))" + "face": "Red-color/Red", + "ball": "Blue-color/Blue" } } } @@ -8828,12 +8200,12 @@ [ 4.5, 0, - "(Red, (), (Blue), ((Green)))" + "Red/red_blech" ], [ - 5.5, + 5.0, 0, - "((( ))), Red" + "Blue-color/blue" ] ] ], @@ -8847,12 +8219,12 @@ [ 4.5, 0, - "(Red, ( Blue ), ((Green)))" + "Red-color/Red" ], [ - 5.5, + 5.0, 0, - "(((Def/Acc/3.5 m-per-s^2)))" + "Blue-color/Blue" ] ] ] @@ -8863,8 +8235,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Red, (), (Blue), ((Green)))", - "ball": "((( ))), Red" + "face": "Red/red_blech", + "ball": "Blue-color/blue" } } }, @@ -8895,8 +8267,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Red, ( Blue ), ((Green)))", - "ball": "(((Def/Acc/3.5 m-per-s^2)))" + "face": "Red-color/Red", + "ball": "Blue-color/Blue" } } }, @@ -8926,9 +8298,11 @@ } }, { - "error_code": "TAG_EXPRESSION_REPEATED", - "name": "tag-expression-repeated-same-level", - "description": "A tag is repeated in the same tag group or level.", + "error_code": "TAG_EMPTY", + "alt_codes": [], + "name": "tag-empty-extra-commas-or-parentheses", + "description": "A HED string has extra commas or parentheses separated by only white space.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8937,13 +8311,14 @@ "tests": { "string_tests": { "fails": [ - "Red, (Blue), Red, Green", - "(Red, Blue, (Green)), (Red, Blue, (Green))", - "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "Red, , , Green", + "(, Red, Green), Blue", + "(Red, , Green), Blue", + "(Red, Green,), Blue", + "(Red, Green), Blue," ], "passes": [ - "Red, (Blue, Red)", - "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "(Red, Blue), Green" ] }, "sidecar_tests": { @@ -8951,9 +8326,10 @@ { "event_code": { "HED": { - "face": "Red, (Blue), Red, Green", - "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", - "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "square": "Red, , , Green", + "test": "(, Red, Green), Blue", + "pine": "(Red, , Green), Blue", + "apple": "(Red, Green,), Blue" } } } @@ -8962,8 +8338,8 @@ { "event_code": { "HED": { - "face": "Red, (Blue, Red)", - "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "face": "Red, Blue", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -8978,19 +8354,24 @@ "HED" ], [ - 4.5, + 5.5, 0, - "Red, (Blue), Red, Green" + "Red, , , Green" ], [ - 5.5, + 7.5, 0, - "(Red, Blue, (Green)), (Red, Blue, (Green))" + "(, Red, Green), Blue" ], [ - 6.5, + 8.2, 0, - "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "(Red, , Green), Blue" + ], + [ + 9.1, + 0, + "(Red, Green,), Blue" ] ] ], @@ -9004,12 +8385,7 @@ [ 4.5, 0, - "Red, (Blue, Red)" - ], - [ - 5.5, - 0, - "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "Red, (Blue, Green)" ] ] ] @@ -9020,9 +8396,10 @@ "sidecar": { "event_code": { "HED": { - "face": "Red, (Blue), Red, Green", - "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", - "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "square": "Red, , , Green", + "test": "(, Red, Green), Blue", + "pine": "(Red, , Green), Blue", + "apple": "(Red, Green,), Blue" } } }, @@ -9036,13 +8413,13 @@ [ 4.5, 0, - "face", + "test", "Red, Def/MyColor" ], [ 5.0, 0, - "ball", + "apple", "Green" ] ] @@ -9053,8 +8430,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red, (Blue, Red)", - "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "face": "Red, Green", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" } } }, @@ -9084,10 +8461,11 @@ } }, { - "error_code": "TAG_EXTENDED", - "name": "tag-extended-extension", - "description": "A tag represents an extension from the schema.", - "warning": true, + "error_code": "TAG_EMPTY", + "alt_codes": [], + "name": "tag-empty-begin-end-comma", + "description": "A HED string begins or ends with a comma (ignoring white space).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9096,16 +8474,12 @@ "tests": { "string_tests": { "fails": [ - "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", - "Sensory-presentation/Visual-presentation/Nice-yellow", - "Red-color/Red/Redish", - "Red-color/Red/Redish/More-redish", - "((Green/Greenish))", - "Red/1red", - "Red/Red--2red" + ", Blue,Def/Acc/3.2 m-per-s^2", + "(Blue, Green),Yellow,", + ",,(Blue, Green),Yellow," ], "passes": [ - "Red-color/Red" + "(Red, Blue), Green" ] }, "sidecar_tests": { @@ -9113,11 +8487,9 @@ { "event_code": { "HED": { - "face": "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", - "ball": "Sensory-presentation/Visual-presentation/Nice-yellow", - "square": "((Green/Greenish))", - "triangle": "Red/1red", - "catwalk": "Red/Red--2red" + "face": ", Blue,Def/Acc/3.2 m-per-s^2", + "ball": "(Blue, Green),Yellow,", + "square": ",,(Blue, Green),Yellow," } } } @@ -9126,7 +8498,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red" + "face": "Red, Blue", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -9143,12 +8516,17 @@ [ 4.5, 0, - "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))" + ", (Blue, Green),Yellow," ], [ 5.5, 0, - "Sensory-presentation/Visual-presentation/Nice-yellow" + ",,(Blue, Green),Yellow," + ], + [ + 6.5, + 0, + ", Blue,Def/Acc/3.2 m-per-s^2" ] ] ], @@ -9162,7 +8540,7 @@ [ 4.5, 0, - "Red-color/Red" + "Red, (Blue, Green)" ] ] ] @@ -9173,8 +8551,9 @@ "sidecar": { "event_code": { "HED": { - "face": "(Red-color/Red/Big-red/Bigger-red, Blue/Nice-blue),(Green, (Yellow))", - "ball": "Sensory-presentation/Visual-presentation/Nice-yellow" + "face": ", Blue,Def/Acc/3.2", + "ball": "(Blue, Green),Yellow,", + "square": ",,(Blue, Green),Yellow," } } }, @@ -9206,7 +8585,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } }, @@ -9236,9 +8615,11 @@ } }, { - "error_code": "TAG_EXTENSION_INVALID", - "name": "tag-extension-invalid-duplicate", - "description": "A tag extension term is already in the schema.", + "error_code": "TAG_EMPTY", + "alt_codes": [], + "name": "tag-empty-empty-parentheses", + "description": "A tag group is empty (i.e., empty parentheses are not allowed).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9247,12 +8628,12 @@ "tests": { "string_tests": { "fails": [ - "Red-color/Red/DarkRed, Sensory-presentation/Red", - "Sensory-presentation/Red/Redish" + "(Red, (), (Blue), ((Green)))", + "((( ))), Red" ], "passes": [ - "Red-color/Red/Redish", - "((Green/Greenish))" + "(Red, ( Blue ), ((Green)))", + "(((Def/Acc/3.5 m-per-s^2)))" ] }, "sidecar_tests": { @@ -9260,8 +8641,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", - "ball": "Sensory-presentation/Red/Redish" + "face": "(Red, (), (Blue), ((Green)))", + "ball": "((( ))), Red" } } } @@ -9270,8 +8651,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red/Redish", - "ball": "((Green/Greenish))" + "face": "(Red, ( Blue ), ((Green)))", + "ball": "(((Def/Acc/3.5 m-per-s^2)))" } } } @@ -9288,12 +8669,12 @@ [ 4.5, 0, - "Red-color/Red/DarkRed, Sensory-presentation/Red" + "(Red, (), (Blue), ((Green)))" ], [ 5.5, 0, - "Sensory-presentation/Red/Redish" + "((( ))), Red" ] ] ], @@ -9307,12 +8688,12 @@ [ 4.5, 0, - "Red-color/Red" + "(Red, ( Blue ), ((Green)))" ], [ 5.5, 0, - "((Green))" + "(((Def/Acc/3.5 m-per-s^2)))" ] ] ] @@ -9323,8 +8704,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", - "ball": "Sensory-presentation/Red/Redish" + "face": "(Red, (), (Blue), ((Green)))", + "ball": "((( ))), Red" } } }, @@ -9355,8 +8736,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red-color/Red", - "ball": "Blue" + "face": "(Red, ( Blue ), ((Green)))", + "ball": "(((Def/Acc/3.5 m-per-s^2)))" } } }, @@ -9386,9 +8767,11 @@ } }, { - "error_code": "TAG_EXTENSION_INVALID", - "name": "tag-extension-invalid-bad-node-name", - "description": "A tag extension term does not comply with rules for schema nodes.", + "error_code": "TAG_EXPRESSION_REPEATED", + "alt_codes": [], + "name": "tag-expression-repeated-same-level", + "description": "A tag is repeated in the same tag group or level.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9397,13 +8780,13 @@ "tests": { "string_tests": { "fails": [ - "Red/Red$2", - "Red/R#d" + "Red, (Blue), Red, Green", + "(Red, Blue, (Green)), (Red, Blue, (Green))", + "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" ], "passes": [ - "Red-color/Red", - "((Green))", - "Red" + "Red, (Blue, Red)", + "(Red, Blue, (Green)), (Red, Blue, ((Green)))" ] }, "sidecar_tests": { @@ -9411,8 +8794,9 @@ { "event_code": { "HED": { - "face": "Red/Red$2", - "ball": "Red/R#d" + "face": "Red, (Blue), Red, Green", + "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", + "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" } } } @@ -9421,11 +8805,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red/Redish", - "ball": "Red-color/Red/Redish/More-redish", - "square": "((Green/Greenish))", - "triangle": "Red/1red", - "catwalk": "Red/Red--2red" + "face": "Red, (Blue, Red)", + "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" } } } @@ -9442,12 +8823,17 @@ [ 4.5, 0, - "Red/Red$2" + "Red, (Blue), Red, Green" ], [ 5.5, 0, - "Red/R#d" + "(Red, Blue, (Green)), (Red, Blue, (Green))" + ], + [ + 6.5, + 0, + "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" ] ] ], @@ -9461,27 +8847,12 @@ [ 4.5, 0, - "Red-color/Red/Redish" + "Red, (Blue, Red)" ], [ 5.5, 0, - "Red-color/Red/Redish/More-redish" - ], - [ - 6.5, - 0, - "((Green/Greenish))" - ], - [ - 7.5, - 0, - "Red/1red" - ], - [ - 8.2, - 0, - "Red/Red--2red" + "(Red, Blue, (Green)), (Red, Blue, ((Green)))" ] ] ] @@ -9492,8 +8863,9 @@ "sidecar": { "event_code": { "HED": { - "face": "Red/Red$2", - "ball": "Red/R#d" + "face": "Red, (Blue), Red, Green", + "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", + "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" } } }, @@ -9524,8 +8896,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red/Redish-like", - "ball": "Blue" + "face": "Red, (Blue, Red)", + "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" } } }, @@ -9555,10 +8927,12 @@ } }, { - "error_code": "TAG_GROUP_ERROR", - "name": "tag-group-error-missing", - "description": "A tag has tagGroup or topLevelTagGroup attribute, but is not enclosed in parentheses.", - "schema": "8.2.0", + "error_code": "TAG_EXTENDED", + "alt_codes": [], + "name": "tag-extended-extension", + "description": "A tag represents an extension from the schema.", + "warning": true, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -9566,17 +8940,16 @@ "tests": { "string_tests": { "fails": [ - "Definition, (Red)", - "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", - "Onset", - "Duration/3.0 s", - "Delay/3.0 s" + "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", + "Sensory-presentation/Visual-presentation/Nice-yellow", + "Red-color/Red/Redish", + "Red-color/Red/Redish/More-redish", + "((Green/Greenish))", + "Red/1red", + "Red/Red--2red" ], "passes": [ - "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", - "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)", - "(Duration/3.0 s, (Event))", - "(Duration/3.0 s, Delay/2.0 s, (Event))" + "Red-color/Red" ] }, "sidecar_tests": { @@ -9584,8 +8957,11 @@ { "event_code": { "HED": { - "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", - "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" + "face": "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", + "ball": "Sensory-presentation/Visual-presentation/Nice-yellow", + "square": "((Green/Greenish))", + "triangle": "Red/1red", + "catwalk": "Red/Red--2red" } } } @@ -9594,8 +8970,7 @@ { "event_code": { "HED": { - "face": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", - "ball": "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" + "face": "Red-color/Red" } } } @@ -9612,12 +8987,12 @@ [ 4.5, 0, - "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)" + "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))" ], [ 5.5, 0, - "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" + "Sensory-presentation/Visual-presentation/Nice-yellow" ] ] ], @@ -9631,12 +9006,7 @@ [ 4.5, 0, - "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))" - ], - [ - 5.5, - 0, - "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" + "Red-color/Red" ] ] ] @@ -9647,8 +9017,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", - "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" + "face": "(Red-color/Red/Big-red/Bigger-red, Blue/Nice-blue),(Green, (Yellow))", + "ball": "Sensory-presentation/Visual-presentation/Nice-yellow" } } }, @@ -9680,7 +9050,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7 m-per-s^2, Blue" } } }, @@ -9710,26 +9080,88 @@ } }, { - "error_code": "TAG_GROUP_ERROR", - "name": "tag-group-error-not-top-level", - "description": "A tag with the topLevelTagGroup does not appear at a HED tag group at the top level in an assembled HED annotation.", - "schema": "8.2.0", + "error_code": "TAG_EXTENSION_INVALID", + "alt_codes": [], + "name": "tag-extension-invalid-duplicate", + "description": "A tag extension term is already in the schema.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "Red-color/Red/DarkRed, Sensory-presentation/Red", + "Sensory-presentation/Red/Redish" + ], + "passes": [ + "Red-color/Red/Redish", + "((Green/Greenish))" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", + "ball": "Sensory-presentation/Red/Redish" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "Red-color/Red/Redish", + "ball": "((Green/Greenish))" + } + } + } + ] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Red-color/Red/DarkRed, Sensory-presentation/Red" + ], + [ + 5.5, + 0, + "Sensory-presentation/Red/Redish" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Red-color/Red" + ], + [ + 5.5, + 0, + "((Green))" + ] + ] + ] }, "combo_tests": { "fails": [ @@ -9737,8 +9169,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "((Def/Acc/3.0 m-per-s^2, Onset))" + "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", + "ball": "Sensory-presentation/Red/Redish" } } }, @@ -9769,8 +9201,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" + "face": "Red-color/Red", + "ball": "Blue" } } }, @@ -9800,10 +9232,12 @@ } }, { - "error_code": "TAG_GROUP_ERROR", - "name": "multiple-top-level-tags-in-same-group", - "description": "Multiple tags with the topLevelTagGroup attribute appear in the same top-level tag group. (Delay and Duration are allowed to be in the same topLevelTagGroup).", - "schema": "8.2.0", + "error_code": "TAG_EXTENSION_INVALID", + "alt_codes": [], + "name": "tag-extension-invalid-bad-node-name", + "description": "A tag extension term does not comply with rules for schema nodes.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -9811,14 +9245,13 @@ "tests": { "string_tests": { "fails": [ - "(Def/MyColor, Onset, Event-context)", - "(Event-context, Red, Offset)", - "(Event-context, Duration/3.0 s, Offset)", - "(Delay/3.0 s, Duration/2.0 s, Offset)" + "Red/Red$2", + "Red/R#d" ], "passes": [ - "(Def/MyColor, Onset)", - "((Event), Duration/3.0 s, Delay/2.0 s)" + "Red-color/Red", + "((Green))", + "Red" ] }, "sidecar_tests": { @@ -9826,20 +9259,9 @@ { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" - } - } - }, - { - "event_code": { - "HED": { - "face": "Acceleration/5.0", - "ball": "Onset" + "face": "Red/Red$2", + "ball": "Red/R#d" } - }, - "val_col": { - "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ], @@ -9847,12 +9269,12 @@ { "event_code": { "HED": { - "face": "(Acceleration/5.0)", - "ball": "Delay/5.0 s, (Acceleration/5.0)" + "face": "Red-color/Red/Redish", + "ball": "Red-color/Red/Redish/More-redish", + "square": "((Green/Greenish))", + "triangle": "Red/1red", + "catwalk": "Red/Red--2red" } - }, - "val_col": { - "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ] @@ -9868,12 +9290,12 @@ [ 4.5, 0, - "Red, (Event-context, Def/MyColor, Onset)" + "Red/Red$2" ], [ - 5.0, + 5.5, 0, - "Green" + "Red/R#d" ] ] ], @@ -9887,12 +9309,27 @@ [ 4.5, 0, - "Red, (Event-context, Def/MyColor)" + "Red-color/Red/Redish" ], [ - 5.0, + 5.5, 0, - "Green" + "Red-color/Red/Redish/More-redish" + ], + [ + 6.5, + 0, + "((Green/Greenish))" + ], + [ + 7.5, + 0, + "Red/1red" + ], + [ + 8.2, + 0, + "Red/Red--2red" ] ] ] @@ -9903,8 +9340,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" + "face": "Red/Red$2", + "ball": "Red/R#d" } } }, @@ -9919,7 +9356,7 @@ 4.5, 0, "face", - "Red, (Def/MyColor, Event-context, Event-context)" + "Red, Def/MyColor" ], [ 5.0, @@ -9935,8 +9372,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" + "face": "Red/Redish-like", + "ball": "Blue" } } }, @@ -9951,7 +9388,7 @@ 4.5, 0, "face", - "Blue, (Event-context, Label/Red)" + "Blue" ], [ 5.0, @@ -9966,10 +9403,14 @@ } }, { - "error_code": "TAG_INVALID", - "name": "tag-invalid-in-schema", - "description": "The tag is not valid in the schema it is associated with.", - "schema": "8.3.0", + "error_code": "TAG_GROUP_ERROR", + "alt_codes": [ + "TEMPORAL_TAG_ERROR" + ], + "name": "tag-group-error-missing", + "description": "A tag has tagGroup or topLevelTagGroup attribute, but is not enclosed in parentheses.", + "warning": false, + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -9977,12 +9418,17 @@ "tests": { "string_tests": { "fails": [ - "Label #", - "ReallyInvalid/Extension", - "ReallyInvalid" + "Definition/Blech, (Red)", + "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", + "Onset", + "Duration/3.0 s", + "Delay/3.0 s" ], "passes": [ - "Brown-color/Brown" + "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", + "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)", + "(Duration/3.0 s, (Event))", + "(Duration/3.0 s, Delay/2.0 s, (Event))" ] }, "sidecar_tests": { @@ -9990,9 +9436,8 @@ { "event_code": { "HED": { - "face": "Label #", - "ball": "ReallyInvalid/Extension", - "square": "ReallyInvalid" + "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", + "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" } } } @@ -10001,7 +9446,8 @@ { "event_code": { "HED": { - "face": "Brown-color/Brown" + "face": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", + "ball": "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" } } } @@ -10018,17 +9464,12 @@ [ 4.5, 0, - "Label #" - ], - [ - 5.5, - 0, - "Property/Sensory-event" + "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)" ], [ 5.5, 0, - "Sensory-event/Baloney" + "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" ] ] ], @@ -10042,7 +9483,12 @@ [ 4.5, 0, - "Brown-color/Brown" + "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))" + ], + [ + 5.5, + 0, + "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" ] ] ] @@ -10053,9 +9499,8 @@ "sidecar": { "event_code": { "HED": { - "face": "ReallyInvalid", - "ball": "Property/Sensory-event", - "square": "Sensory-event/Baloney" + "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", + "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" } } }, @@ -10087,7 +9532,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue/Apples" + "ball": "Def/Acc/7, Blue" } } }, @@ -10117,49 +9562,26 @@ } }, { - "error_code": "TAG_INVALID", - "name": "tag-has-extra-white space", - "description": "A HED tag has extra internal whitespace, including directly before or after slashes.", - "schema": "8.3.0", + "error_code": "TAG_GROUP_ERROR", + "alt_codes": [ + "TEMPORAL_TAG_ERROR" + ], + "name": "tag-group-error-not-top-level", + "description": "A tag with the topLevelTagGroup does not appear at a HED tag group at the top level in an assembled HED annotation.", + "warning": false, + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [ - "Sensory- event,Green", - "Sensory -event,Blue", - "Event /Sensory-event, Black", - "Event/ Sensory-event,White" - ], - "passes": [ - "Sensory-event, Green" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "square": "Sensory- event,Green", - "test": "Sensory -event,Blue", - "pine": "Event /Sensory-event, Black", - "apple": "Event/ Sensory-event,White" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "Sensory-event, Green", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ @@ -10167,27 +9589,20 @@ [ "onset", "duration", + "event_code", "HED" ], [ - 5.5, - 0, - "Sensory- event,Green" - ], - [ - 7.5, - 0, - "Sensory -event,Blue" - ], - [ - 8.2, + 4.5, 0, - "Event /Sensory-event, Black" + "face", + "Red, Def/MyColor, ((Duration/5 s, (Red)))" ], [ - 9.1, + 5.0, 0, - "Event/ Sensory-event,White" + "ball", + "Green" ] ] ], @@ -10196,12 +9611,20 @@ [ "onset", "duration", + "event_code", "HED" ], [ 4.5, 0, - "Sensory-event, Green" + "face", + "Red, Def/MyColor, (Duration/5 s, (Red))" + ], + [ + 5.0, + 0, + "ball", + "Green" ] ] ] @@ -10212,10 +9635,8 @@ "sidecar": { "event_code": { "HED": { - "square": "Sensory- event,Green", - "test": "Sensory -event,Blue", - "pine": "Event /Sensory-event, Black", - "apple": "Event/ Sensory-event,White" + "face": "Acceleration/banana", + "ball": "((Def/Acc/3.0 m-per-s^2, Onset))" } } }, @@ -10229,13 +9650,13 @@ [ 4.5, 0, - "test", + "face", "Red, Def/MyColor" ], [ 5.0, 0, - "apple", + "ball", "Green" ] ] @@ -10246,8 +9667,8 @@ "sidecar": { "event_code": { "HED": { - "face": " Red, Green", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" + "face": "Acceleration/5 m-per-s^2", + "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" } } }, @@ -10277,10 +9698,14 @@ } }, { - "error_code": "TAG_INVALID", - "name": "tag-has-leading-trailing-or-consecutive-slashes", - "description": "A HED tag has leading, trailing or consecutive slashes.", - "schema": "8.3.0", + "error_code": "TAG_GROUP_ERROR", + "alt_codes": [ + "TEMPORAL_TAG_ERROR" + ], + "name": "multiple-top-level-tags-in-same-group", + "description": "Multiple tags with the topLevelTagGroup attribute appear in the same top-level tag group. (Delay and Duration are allowed to be in the same topLevelTagGroup).", + "warning": false, + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -10288,18 +9713,14 @@ "tests": { "string_tests": { "fails": [ - "/Event", - "Red/", - "Event//Sensory-event", - "//Event", - "Body-part/Head-part//Brain", - "Def/Acc/4.5//", - "Def/Acc/4.5/", - "/ /Def/Acc/4.5 ms/" + "(Def/MyColor, Onset, Event-context)", + "(Event-context, Red, Offset)", + "(Event-context, Duration/3.0 s, Offset)", + "(Delay/3.0 s, Duration/2.0 s, Offset)" ], "passes": [ - "Body-part/Head-part/Brain", - "Label/Red, Informational-property/Label/Blue" + "(Def/MyColor, Onset)", + "((Event), Duration/3.0 s, Delay/2.0 s)" ] }, "sidecar_tests": { @@ -10307,21 +9728,33 @@ { "event_code": { "HED": { - "face": "Event//Sensory-event", - "ball": "/Event", - "square": "Red/", - "test": "/ /Def/Acc/4.5 ms/" + "face": "Acceleration/banana", + "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" } } + }, + { + "event_code": { + "HED": { + "face": "Acceleration/5.0", + "ball": "Onset" + } + }, + "val_col": { + "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" + } } ], "passes": [ { "event_code": { "HED": { - "face": "Body-part/Head-part/Brain", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" + "face": "(Acceleration/5.0)", + "ball": "Delay/5.0 s, (Acceleration/5.0)" } + }, + "val_col": { + "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ] @@ -10337,22 +9770,12 @@ [ 4.5, 0, - "/Event," - ], - [ - 5.5, - 0, - "Body-part/Head-part//Brain" - ], - [ - 6.5, - 0, - "Event/Sensory-event/" + "Red, (Event-context, Def/MyColor, Onset)" ], [ - 7.2, + 5.0, 0, - "/ /Def/Acc/4.5 ms/" + "Green" ] ] ], @@ -10366,7 +9789,12 @@ [ 4.5, 0, - "Event/Sensory-event" + "Red, (Event-context, Def/MyColor)" + ], + [ + 5.0, + 0, + "Green" ] ] ] @@ -10377,10 +9805,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Event//Sensory-event", - "ball": "//Event", - "square": "Body-part/Head-part//Brain", - "test": "/ /Def/Acc/4.5 ms/" + "face": "Acceleration/banana", + "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" } } }, @@ -10395,19 +9821,13 @@ 4.5, 0, "face", - "Red/, Def/MyColor" + "Red, (Def/MyColor, Event-context, Event-context)" ], [ 5.0, 0, "ball", "Green" - ], - [ - 7.2, - 0, - "n/a", - "/ /Def/Acc/4.5 ms/" ] ] } @@ -10418,7 +9838,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" } } }, @@ -10433,13 +9853,13 @@ 4.5, 0, "face", - "Blue" + "Blue, (Event-context, Label/Red)" ], [ 5.0, 0, "ball", - "Event/Sensory-event" + "Green, Def/MyColor" ] ] } @@ -10448,13 +9868,12 @@ } }, { - "error_code": "TAG_NAMESPACE_PREFIX_INVALID", - "name": "tag-namespace_prefix-invalid-no-schema", - "description": "A tag starting with name: does not have an associated schema.", - "schema": [ - "8.3.0", - "sc:score_1.0.0" - ], + "error_code": "TAG_INVALID", + "alt_codes": [], + "name": "tag-invalid-in-schema", + "description": "The tag is not valid in the schema it is associated with.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -10462,11 +9881,12 @@ "tests": { "string_tests": { "fails": [ - "ts:Red, Blue", - "(ts:Red, (sc:Sleep-modulator))" + "Label #", + "ReallyInvalid/Extension", + "ReallyInvalid" ], "passes": [ - "sc:Sleep-modulator" + "Brown-color/Brown" ] }, "sidecar_tests": { @@ -10474,8 +9894,9 @@ { "event_code": { "HED": { - "face": "ts:Red, Blue", - "ball": "(ts:Red, (sc:Sleep-modulator))" + "face": "Label #", + "ball": "ReallyInvalid/Extension", + "square": "ReallyInvalid" } } } @@ -10484,7 +9905,7 @@ { "event_code": { "HED": { - "face": "sc:Sleep-modulator" + "face": "Brown-color/Brown" } } } @@ -10501,12 +9922,17 @@ [ 4.5, 0, - "ts:Red, Blue" + "Label #" ], [ 5.5, 0, - "(ts:Red, (sc:Sleep-modulator))" + "Property/Sensory-event" + ], + [ + 5.5, + 0, + "Sensory-event/Baloney" ] ] ], @@ -10520,7 +9946,7 @@ [ 4.5, 0, - "sc:Sleep-modulator" + "Brown-color/Brown" ] ] ] @@ -10531,8 +9957,9 @@ "sidecar": { "event_code": { "HED": { - "face": "ts:Red, Blue", - "ball": "(ts:Red, (sc:Sleep-modulator))" + "face": "ReallyInvalid", + "ball": "Property/Sensory-event", + "square": "Sensory-event/Baloney" } } }, @@ -10564,7 +9991,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue, sc:Sleep-modulator" + "ball": "Def/Acc/7, Blue/Apples" } } }, @@ -10579,7 +10006,7 @@ 4.5, 0, "face", - "Blue, sc:Sleep-modulator" + "Blue" ], [ 5.0, @@ -10594,13 +10021,12 @@ } }, { - "error_code": "TAG_NAMESPACE_PREFIX_INVALID", - "name": "tag-namespace_prefix-invalid-characters", - "description": "A tag prefix has invalid characters.", - "schema": [ - "8.3.0", - "sc:score_1.0.0" - ], + "error_code": "TAG_INVALID", + "alt_codes": [], + "name": "tag-has-extra-white space", + "description": "A HED tag has extra internal whitespace, including directly before or after slashes.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -10608,12 +10034,13 @@ "tests": { "string_tests": { "fails": [ - "sc2:Sleep-modulator, Red", - "sca:Sleep-modulator, Red" + "Sensory- event,Green", + "Sensory -event,Blue", + "Event /Sensory-event, Black", + "Event/ Sensory-event,White" ], "passes": [ - "Blue", - "sc:Sleep-modulator, Red" + "Sensory-event, Green" ] }, "sidecar_tests": { @@ -10621,8 +10048,10 @@ { "event_code": { "HED": { - "face": "sc1:Sleep-modulator, Red", - "ball": "(Def/MyColor, Onset)(Def/Acc/3.5 m-per-s^2)" + "square": "Sensory- event,Green", + "test": "Sensory -event,Blue", + "pine": "Event /Sensory-event, Black", + "apple": "Event/ Sensory-event,White" } } } @@ -10631,8 +10060,8 @@ { "event_code": { "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" + "face": "Sensory-event, Green", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -10647,9 +10076,24 @@ "HED" ], [ - 4.5, + 5.5, 0, - "sc1:Sleep-modulator, Red" + "Sensory- event,Green" + ], + [ + 7.5, + 0, + "Sensory -event,Blue" + ], + [ + 8.2, + 0, + "Event /Sensory-event, Black" + ], + [ + 9.1, + 0, + "Event/ Sensory-event,White" ] ] ], @@ -10663,7 +10107,7 @@ [ 4.5, 0, - "(Red, Blue), (Green, (Yellow))" + "Sensory-event, Green" ] ] ] @@ -10674,8 +10118,10 @@ "sidecar": { "event_code": { "HED": { - "face": "sc1:Sleep-modulator, Red", - "ball": "(Def/MyColor, Onset)(Def/Acc/3.5 m-per-s^2)" + "square": "Sensory- event,Green", + "test": "Sensory -event,Blue", + "pine": "Event /Sensory-event, Black", + "apple": "Event/ Sensory-event,White" } } }, @@ -10689,13 +10135,13 @@ [ 4.5, 0, - "face", + "test", "Red, Def/MyColor" ], [ 5.0, 0, - "ball", + "apple", "Green" ] ] @@ -10706,8 +10152,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2, sc:Sleep-modulator", - "ball": "Def/Acc/7, Blue" + "face": " Red, Green", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" } } }, @@ -10737,9 +10183,11 @@ } }, { - "error_code": "TAG_NOT_UNIQUE", - "name": "tag-not-unique", - "description": "A tag with unique attribute appears more than once in an event-level HED string.", + "error_code": "TAG_INVALID", + "alt_codes": [], + "name": "tag-has-leading-trailing-or-consecutive-slashes", + "description": "A HED tag has leading, trailing or consecutive slashes.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10748,10 +10196,18 @@ "tests": { "string_tests": { "fails": [ - "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "/Event", + "Red/", + "Event//Sensory-event", + "//Event", + "Body-part/Head-part//Brain", + "Def/Acc/4.5//", + "Def/Acc/4.5/", + "/ /Def/Acc/4.5 ms/" ], "passes": [ - "(Event-context, (Red, Blue))" + "Body-part/Head-part/Brain", + "Label/Red, Informational-property/Label/Blue" ] }, "sidecar_tests": { @@ -10759,7 +10215,10 @@ { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "face": "Event//Sensory-event", + "ball": "/Event", + "square": "Red/", + "test": "/ /Def/Acc/4.5 ms/" } } } @@ -10768,7 +10227,8 @@ { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue))" + "face": "Body-part/Head-part/Brain", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -10778,14 +10238,29 @@ "fails": [ [ [ - "onset", - "duration", - "HED" + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "/Event," + ], + [ + 5.5, + 0, + "Body-part/Head-part//Brain" + ], + [ + 6.5, + 0, + "Event/Sensory-event/" ], [ - 4.5, + 7.2, 0, - "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "/ /Def/Acc/4.5 ms/" ] ] ], @@ -10799,7 +10274,7 @@ [ 4.5, 0, - "(Event-context, (Red, Blue))" + "Event/Sensory-event" ] ] ] @@ -10810,7 +10285,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "face": "Event//Sensory-event", + "ball": "//Event", + "square": "Body-part/Head-part//Brain", + "test": "/ /Def/Acc/4.5 ms/" } } }, @@ -10825,13 +10303,19 @@ 4.5, 0, "face", - "Red, Def/MyColor" + "Red/, Def/MyColor" ], [ 5.0, 0, "ball", "Green" + ], + [ + 7.2, + 0, + "n/a", + "/ /Def/Acc/4.5 ms/" ] ] } @@ -10841,7 +10325,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue))", + "face": "Acceleration/5 m-per-s^2", "ball": "Def/Acc/7, Blue" } } @@ -10863,7 +10347,7 @@ 5.0, 0, "ball", - "(Event-context, (Red, Blue))" + "Event/Sensory-event" ] ] } @@ -10872,10 +10356,15 @@ } }, { - "error_code": "TAG_REQUIRES_CHILD", - "name": "tag-requires-child-no-child", - "description": "A tag has the requireChild schema attribute but does not have a child.", - "schema": "8.2.0", + "error_code": "TAG_NAMESPACE_PREFIX_INVALID", + "alt_codes": [], + "name": "tag-namespace_prefix-invalid-no-schema", + "description": "A tag starting with name: does not have an associated schema.", + "warning": false, + "schema": [ + "8.3.0", + "sc:score_1.0.0" + ], "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -10883,12 +10372,11 @@ "tests": { "string_tests": { "fails": [ - "(Blue, Description)", - "Label, Red" + "ts:Red, Blue", + "(ts:Red, (sc:Sleep-modulator))" ], "passes": [ - "(Blue, Description/Yes this is a description., (Red))", - "Label/Redish, Red" + "sc:Sleep-modulator" ] }, "sidecar_tests": { @@ -10896,8 +10384,8 @@ { "event_code": { "HED": { - "face": "(Blue, Description)", - "ball": "Label, Red" + "face": "ts:Red, Blue", + "ball": "(ts:Red, (sc:Sleep-modulator))" } } } @@ -10906,8 +10394,7 @@ { "event_code": { "HED": { - "face": "(Blue, Description/Yes this is a description., (Red))", - "ball": "Label/Redish, Red" + "face": "sc:Sleep-modulator" } } } @@ -10924,12 +10411,12 @@ [ 4.5, 0, - "(Blue, Description)" + "ts:Red, Blue" ], [ - 5.0, + 5.5, 0, - "Label, Red" + "(ts:Red, (sc:Sleep-modulator))" ] ] ], @@ -10943,12 +10430,7 @@ [ 4.5, 0, - "(Blue, Description/Yes this is a description., (Red))" - ], - [ - 5.0, - 0, - "Label/Redish, Red" + "sc:Sleep-modulator" ] ] ] @@ -10959,8 +10441,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Blue, Description)", - "ball": "Label, Red" + "face": "ts:Red, Blue", + "ball": "(ts:Red, (sc:Sleep-modulator))" } } }, @@ -10992,7 +10474,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7, Blue, sc:Sleep-modulator" } } }, @@ -11007,7 +10489,7 @@ 4.5, 0, "face", - "Label/Blue" + "Blue, sc:Sleep-modulator" ], [ 5.0, @@ -11022,10 +10504,15 @@ } }, { - "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-not-tag-group", - "description": "An Onset or Offset tag does not appear in a tag group.", - "schema": "8.2.0", + "error_code": "TAG_NAMESPACE_PREFIX_INVALID", + "alt_codes": [], + "name": "tag-namespace_prefix-invalid-characters", + "description": "A tag prefix has invalid characters.", + "warning": false, + "schema": [ + "8.3.0", + "sc:score_1.0.0" + ], "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -11033,11 +10520,12 @@ "tests": { "string_tests": { "fails": [ - "Onset, Red", - "Offset, Def/Acc/5.4 m-per-s^2" + "sc2:Sleep-modulator, Red", + "sca:Sleep-modulator, Red" ], "passes": [ - "(Onset, Def/Acc/5.4 m-per-s^2)" + "Blue", + "sc:Sleep-modulator, Red" ] }, "sidecar_tests": { @@ -11045,8 +10533,8 @@ { "event_code": { "HED": { - "face": "Onset, Red", - "ball": "Offset, Def/Acc/5.4 m-per-s^2" + "face": "sc1:Sleep-modulator, Red", + "ball": "(Def/MyColor, Onset)(Def/Acc/3.5 m-per-s^2)" } } } @@ -11055,7 +10543,8 @@ { "event_code": { "HED": { - "face": "(Onset, Def/Acc/5.4 m-per-s^2)" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" } } } @@ -11072,17 +10561,7 @@ [ 4.5, 0, - "Onset, Red" - ], - [ - 4.8, - 0, - "(Onset, MyColor)" - ], - [ - 5.0, - 0, - "Offset, MyColor" + "sc1:Sleep-modulator, Red" ] ] ], @@ -11096,17 +10575,7 @@ [ 4.5, 0, - "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" - ], - [ - 5.5, - 0, - "(Onset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 6.3, - 0, - "(Offset, Def/Acc/5.4 m-per-s^2)" + "(Red, Blue), (Green, (Yellow))" ] ] ] @@ -11117,8 +10586,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Onset, Red", - "ball": "Offset, Def/Acc/5.4 m-per-s^2" + "face": "sc1:Sleep-modulator, Red", + "ball": "(Def/MyColor, Onset)(Def/Acc/3.5 m-per-s^2)" } } }, @@ -11132,20 +10601,14 @@ [ 4.5, 0, - "ball", - "Onset, Red" - ], - [ - 4.8, - 0, - "n/a", - "(Onset/MyColor)" + "face", + "Red, Def/MyColor" ], [ 5.0, 0, - "face", - "Offset, MyColor" + "ball", + "Green" ] ] } @@ -11155,7 +10618,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/Acc/5.4 m-per-s^2)" + "face": "Acceleration/5 m-per-s^2, sc:Sleep-modulator", + "ball": "Def/Acc/7, Blue" } } }, @@ -11167,28 +10631,16 @@ "HED" ], [ - 5.5, - 0, - "n/a", - "(Onset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 6.3, - 0, - "n/a", - "(Offset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 8.5, + 4.5, 0, "face", "Blue" ], [ - 9.0, + 5.0, 0, - "n/a", - "Green, ((Def-expand/MyColor, (Label/Pie)), Onset)" + "ball", + "Green, Def/MyColor" ] ] } @@ -11197,10 +10649,12 @@ } }, { - "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-nested-group", - "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", - "schema": "8.2.0", + "error_code": "TAG_NOT_UNIQUE", + "alt_codes": [], + "name": "tag-not-unique", + "description": "A tag with unique attribute appears more than once in an event-level HED string.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -11208,10 +10662,10 @@ "tests": { "string_tests": { "fails": [ - "((Onset, Def/MyColor), Red)" + "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" ], "passes": [ - "(Onset, Def/MyColor), Red" + "(Event-context, (Red, Blue))" ] }, "sidecar_tests": { @@ -11219,7 +10673,7 @@ { "event_code": { "HED": { - "face": "((Onset, Def/MyColor), Red)" + "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" } } } @@ -11228,7 +10682,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor), Red" + "face": "(Event-context, (Red, Blue))" } } } @@ -11245,7 +10699,7 @@ [ 4.5, 0, - "((Onset, Def/MyColor), Red)" + "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" ] ] ], @@ -11259,7 +10713,7 @@ [ 4.5, 0, - "(Onset, Def/MyColor), Red" + "(Event-context, (Red, Blue))" ] ] ] @@ -11270,7 +10724,7 @@ "sidecar": { "event_code": { "HED": { - "face": "((Onset, Def/MyColor), Red)" + "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" } } }, @@ -11284,13 +10738,13 @@ [ 4.5, 0, - "n/a", - "((Onset, Def/MyColor), Red)" + "face", + "Red, Def/MyColor" ], [ 5.0, 0, - "face", + "ball", "Green" ] ] @@ -11301,7 +10755,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor), Red" + "face": "(Event-context, (Red, Blue))", + "ball": "Def/Acc/7, Blue" } } }, @@ -11321,8 +10776,8 @@ [ 5.0, 0, - "n/a", - "(Onset, Def/MyColor), Red" + "ball", + "(Event-context, (Red, Blue))" ] ] } @@ -11331,9 +10786,11 @@ } }, { - "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-wrong-number-of-defs", - "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", + "error_code": "TAG_REQUIRES_CHILD", + "alt_codes": [], + "name": "tag-requires-child-no-child", + "description": "A tag has the requireChild schema attribute but does not have a child.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11342,11 +10799,12 @@ "tests": { "string_tests": { "fails": [ - "(Onset, (Red))" + "(Blue, Description)", + "Label, Red" ], "passes": [ - "(Onset, Def/MyColor, (Red))", - "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + "(Blue, Description/Yes this is a description., (Red))", + "Label/Redish, Red" ] }, "sidecar_tests": { @@ -11354,8 +10812,8 @@ { "event_code": { "HED": { - "face": "(Onset, (Red))", - "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "(Blue, Description)", + "ball": "Label, Red" } } } @@ -11364,7 +10822,8 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor, (Red))" + "face": "(Blue, Description/Yes this is a description., (Red))", + "ball": "Label/Redish, Red" } } } @@ -11381,12 +10840,12 @@ [ 4.5, 0, - "(Onset, (Red))" + "(Blue, Description)" ], [ - 5.5, + 5.0, 0, - "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "Label, Red" ] ] ], @@ -11400,7 +10859,12 @@ [ 4.5, 0, - "(Onset, Def/MyColor, (Red))" + "(Blue, Description/Yes this is a description., (Red))" + ], + [ + 5.0, + 0, + "Label/Redish, Red" ] ] ] @@ -11411,8 +10875,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, (Red))", - "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "(Blue, Description)", + "ball": "Label, Red" } } }, @@ -11427,19 +10891,13 @@ 4.5, 0, "face", - "Green, Def/MyColor" + "Red, Def/MyColor" ], [ 5.0, 0, - "n/a", - "(Onset, (Yellow))" - ], - [ - 6.0, - 0, "ball", - "n/a" + "Green" ] ] } @@ -11449,7 +10907,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor, (Red))" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -11464,13 +10923,13 @@ 4.5, 0, "face", - "Blue" + "Label/Blue" ], [ 5.0, - 0, - "n/a", - "(Onset, Def/MyColor, (Blue))" + 0, + "ball", + "Green, Def/MyColor" ] ] } @@ -11480,8 +10939,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-onset-has-more-groups", - "description": "An Onset group has more than one additional tag group.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-not-tag-group", + "description": "An Onset or Offset tag does not appear in a tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11490,12 +10953,11 @@ "tests": { "string_tests": { "fails": [ - "(Onset, Def/MyColor, (Red), (Blue))", - "((Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" + "Onset, Red", + "Offset, Def/Acc/5.4 m-per-s^2" ], "passes": [ - "(Onset, Def/MyColor)", - "((Def-expand/MyColor, (Label/Pie)), (Red), Onset)" + "(Onset, Def/Acc/5.4 m-per-s^2)" ] }, "sidecar_tests": { @@ -11503,8 +10965,8 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor, (Red), (Blue))", - "ball": "((Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" + "face": "Onset, Red", + "ball": "Offset, Def/Acc/5.4 m-per-s^2" } } } @@ -11513,8 +10975,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Onset, Def/Acc/5.4 m-per-s^2)" } } } @@ -11531,12 +10992,17 @@ [ 4.5, 0, - "(Onset, Def/MyColor, (Red), (Blue))" + "Onset, Red" ], [ - 5.5, + 4.8, 0, - "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" + "(Onset, MyColor)" + ], + [ + 5.0, + 0, + "Offset, MyColor" ] ] ], @@ -11550,12 +11016,17 @@ [ 4.5, 0, - "(Onset, Def/MyColor)" + "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" ], [ - 5.0, + 5.5, 0, - "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "(Onset, Def/Acc/5.4 m-per-s^2)" + ], + [ + 6.3, + 0, + "(Offset, Def/Acc/5.4 m-per-s^2)" ] ] ] @@ -11566,8 +11037,8 @@ "sidecar": { "event_code": { "HED": { - "face": "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", - "ball": "(Onset, Def/MyColor, (Red), (Blue))" + "face": "Onset, Red", + "ball": "Offset, Def/Acc/5.4 m-per-s^2" } } }, @@ -11581,20 +11052,20 @@ [ 4.5, 0, - "face", - "Red, Def/MyColor" + "ball", + "Onset, Red" ], [ - 5.0, + 4.8, 0, - "ball", - "Green" + "n/a", + "(Onset/MyColor)" ], [ - 6.0, + 5.0, 0, - "n/a", - "(Def/MyColor, (Red), (Blue), Onset)" + "face", + "Offset, MyColor" ] ] } @@ -11604,8 +11075,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Onset, Def/Acc/5.4 m-per-s^2)" } } }, @@ -11617,16 +11087,28 @@ "HED" ], [ - 4.5, + 5.5, 0, "n/a", - "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "(Onset, Def/Acc/5.4 m-per-s^2)" ], [ - 5.0, + 6.3, 0, - "ball", - "Green, Def/MyColor" + "n/a", + "(Offset, Def/Acc/5.4 m-per-s^2)" + ], + [ + 8.5, + 0, + "face", + "Blue" + ], + [ + 9.0, + 0, + "n/a", + "Green, ((Def-expand/MyColor, (Label/Pie)), Onset)" ] ] } @@ -11636,8 +11118,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-offset-has-groups", - "description": "An Offset appears with one or more tags or additional tag groups.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-nested-group", + "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11646,11 +11132,10 @@ "tests": { "string_tests": { "fails": [ - "(Offset, Def/MyColor, Red)", - "((Def-expand/MyColor, (Label/Pie)), Offset, (Red))" + "((Onset, Def/MyColor), Red)" ], "passes": [ - "(Offset, Def/MyColor)" + "(Onset, Def/MyColor), Red" ] }, "sidecar_tests": { @@ -11658,10 +11143,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor, (Red))", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "((Onset, Def/MyColor), Red)" } } } @@ -11670,10 +11152,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor)", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Onset, Def/MyColor), Red" } } } @@ -11690,22 +11169,7 @@ [ 4.5, 0, - "(Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Offset, Def/MyColor, (Red))" - ], - [ - 4.9, - 0, - "(Onset, Def/MyColor, (Red))" - ], - [ - 5.5, - 0, - "((Def-expand/MyColor, (Label/Pie)), (Green), Offset)" + "((Onset, Def/MyColor), Red)" ] ] ], @@ -11719,22 +11183,7 @@ [ 4.5, 0, - "(Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Offset, Def/MyColor)" - ], - [ - 4.9, - 0, - "(Onset, Def/MyColor, (Red))" - ], - [ - 5.5, - 0, - "((Def-expand/MyColor, (Label/Pie)), Offset)" + "(Onset, Def/MyColor), Red" ] ] ] @@ -11745,10 +11194,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor, (Red))", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "((Onset, Def/MyColor), Red)" } } }, @@ -11762,26 +11208,14 @@ [ 4.5, 0, - "face", - "n/a" - ], - [ - 4.8, - 0, - "square", - "n/a" + "n/a", + "((Onset, Def/MyColor), Red)" ], [ - 4.9, + 5.0, 0, - "ball", + "face", "Green" - ], - [ - 5.5, - 0, - "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" ] ] } @@ -11791,10 +11225,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor)", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Onset, Def/MyColor), Red" } } }, @@ -11809,25 +11240,13 @@ 4.5, 0, "face", - "n/a" - ], - [ - 4.8, - 0, - "square", - "n/a" - ], - [ - 4.9, - 0, - "ball", - "Green" + "Blue" ], [ - 5.5, + 5.0, 0, - "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" + "n/a", + "(Onset, Def/MyColor), Red" ] ] } @@ -11837,8 +11256,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-mismatch", - "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", + "alt_codes": [], + "name": "temporal-tag-error-wrong-number-of-defs", + "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11846,12 +11267,34 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Onset, (Red))" + ], + "passes": [ + "(Onset, Def/MyColor, (Red))", + "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Onset, (Red))", + "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Onset, Def/MyColor, (Red))" + } + } + } + ] }, "event_tests": { "fails": [ @@ -11864,17 +11307,12 @@ [ 4.5, 0, - "(Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red, (Def/MyColor, Offset)" + "(Onset, (Red))" ], [ 5.5, 0, - "(Def/MyColor, Offset)" + "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" ] ] ], @@ -11888,17 +11326,7 @@ [ 4.5, 0, - "(Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" + "(Onset, Def/MyColor, (Red))" ] ] ] @@ -11909,8 +11337,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)" + "face": "(Onset, (Red))", + "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" } } }, @@ -11924,20 +11352,20 @@ [ 4.5, 0, - "ball", - "Red, Blue" - ], - [ - 4.8, - 0, - "ball", - "Red, Blue" + "face", + "Green, Def/MyColor" ], [ 5.0, 0, - "face", - "Green" + "n/a", + "(Onset, (Yellow))" + ], + [ + 6.0, + 0, + "ball", + "n/a" ] ] } @@ -11947,8 +11375,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)" + "face": "(Onset, Def/MyColor, (Red))" } } }, @@ -11968,8 +11395,8 @@ [ 5.0, 0, - "ball", - "Green, Def/MyColor" + "n/a", + "(Onset, Def/MyColor, (Blue))" ] ] } @@ -11979,8 +11406,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-extra tags", - "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", + "alt_codes": [], + "name": "temporal-tag-error-onset-has-more-groups", + "description": "An Onset group has more than one additional tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11989,10 +11418,12 @@ "tests": { "string_tests": { "fails": [ - "(Def/MyColor, Blue, Green, Onset)" + "(Onset, Def/MyColor, (Red), (Blue))", + "((Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" ], "passes": [ - "(Def/MyColor, (Blue), Onset)" + "(Onset, Def/MyColor)", + "((Def-expand/MyColor, (Label/Pie)), (Red), Onset)" ] }, "sidecar_tests": { @@ -12000,7 +11431,8 @@ { "event_code": { "HED": { - "face": "(Def/MyColor, Blue, Green, Onset)" + "face": "(Onset, Def/MyColor, (Red), (Blue))", + "ball": "((Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" } } } @@ -12009,7 +11441,8 @@ { "event_code": { "HED": { - "face": "(Def/MyColor, (Blue), Onset)" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" } } } @@ -12026,7 +11459,12 @@ [ 4.5, 0, - "(Def/MyColor, Blue, (Green), Onset)" + "(Onset, Def/MyColor, (Red), (Blue))" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" ] ] ], @@ -12040,7 +11478,12 @@ [ 4.5, 0, - "(Def/MyColor, (Blue), Onset)" + "(Onset, Def/MyColor)" + ], + [ + 5.0, + 0, + "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ] ] ] @@ -12051,8 +11494,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Blue, Green, Onset)", - "ball": "Blue" + "face": "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", + "ball": "(Onset, Def/MyColor, (Red), (Blue))" } } }, @@ -12074,6 +11517,12 @@ 0, "ball", "Green" + ], + [ + 6.0, + 0, + "n/a", + "(Def/MyColor, (Red), (Blue), Onset)" ] ] } @@ -12083,8 +11532,8 @@ "sidecar": { "event_code": { "HED": { - "face": "((Blue, Green), Def/MyColor, Onset)", - "ball": "(Def/Acc/7, Onset)" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" } } }, @@ -12098,8 +11547,8 @@ [ 4.5, 0, - "face", - "Blue" + "n/a", + "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ], [ 5.0, @@ -12115,8 +11564,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duplicated-onset-or-offset", - "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", + "alt_codes": [], + "name": "temporal-tag-error-offset-has-groups", + "description": "An Offset appears with one or more tags or additional tag groups.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12124,16 +11575,99 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Offset, Def/MyColor, Red)", + "((Def-expand/MyColor, (Label/Pie)), Offset, (Red))" + ], + "passes": [ + "(Offset, Def/MyColor)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor, (Red))", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor)", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" + } + } + } + ] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Offset, Def/MyColor, (Red))" + ], + [ + 4.9, + 0, + "(Onset, Def/MyColor, (Red))" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), (Green), Offset)" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Offset, Def/MyColor)" + ], + [ + 4.9, + 0, + "(Onset, Def/MyColor, (Red))" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), Offset)" + ] + ] + ] }, "combo_tests": { "fails": [ @@ -12141,8 +11675,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, (Green), Onset)", - "ball": "Blue" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor, (Red))", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" } } }, @@ -12157,73 +11693,25 @@ 4.5, 0, "face", - "(Def/MyColor, (Blue), Onset)" - ], - [ - 5.0, - 0, - "ball", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Def/MyColor, (Green), Onset)", - "ball": "(Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" + "n/a" ], [ - 4.5, + 4.8, 0, - "face", - "(Def/MyColor, Offset)" + "square", + "n/a" ], [ - 5.0, + 4.9, 0, "ball", - "(Def/MyColor, Offset)" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Def/MyColor, (Green), Onset)", - "ball": "(Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "(Def/MyColor, Offset)" + "Green" ], [ - 5.0, + 5.5, 0, - "ball", - "(Def/MyColor, Offset)" + "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -12233,8 +11721,10 @@ "sidecar": { "event_code": { "HED": { - "face": "((Blue, Green), Def/MyColor, Onset)", - "ball": "(Def/MyColor, Onset)" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor)", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" } } }, @@ -12249,13 +11739,25 @@ 4.5, 0, "face", - "Blue" + "n/a" ], [ - 5.0, + 4.8, + 0, + "square", + "n/a" + ], + [ + 4.9, 0, "ball", "Green" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -12265,8 +11767,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-outside-its-event", - "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", + "alt_codes": [], + "name": "temporal-tag-error-offset-with-no-onset", + "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12292,7 +11796,7 @@ [ 4.5, 0, - "(Inset, (Red))" + "(Def/MyColor, Offset)" ], [ 6.5, @@ -12338,8 +11842,7 @@ "event_code": { "HED": { "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "ball": "(Def/MyColor, Offset)" } } }, @@ -12353,13 +11856,13 @@ [ 4.5, 0, - "snack", + "ball", "Red, Blue" ], [ 4.8, 0, - "face", + "ball", "Red, Blue" ], [ @@ -12377,8 +11880,7 @@ "event_code": { "HED": { "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "ball": "(Def/MyColor, Offset)" } } }, @@ -12395,12 +11897,6 @@ "face", "Blue" ], - [ - 4.8, - 0, - "snack", - "Blue" - ], [ 5.0, 0, @@ -12415,8 +11911,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-group-has-extras", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "alt_codes": [], + "name": "temporal-tag-error-extra tags", + "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12424,12 +11922,32 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Def/MyColor, Blue, Green, Onset)" + ], + "passes": [ + "(Def/MyColor, (Blue), Onset)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Def/MyColor, Blue, Green, Onset)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Blue), Onset)" + } + } + } + ] }, "event_tests": { "fails": [ @@ -12439,25 +11957,10 @@ "duration", "HED" ], - [ - 2.5, - 0, - "Red, (Def/MyColor, Onset)" - ], [ 4.5, 0, - "(Def/MyColor, Blue, Inset)" - ], - [ - 6.5, - 0, - "Red, (Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Offset)" + "(Def/MyColor, Blue, (Green), Onset)" ] ] ], @@ -12472,21 +11975,6 @@ 4.5, 0, "(Def/MyColor, (Blue), Onset)" - ], - [ - 4.8, - 0, - "(Def/MyColor, (Green), Inset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" ] ] ] @@ -12497,9 +11985,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "face": "(Def/MyColor, Blue, Green, Onset)", + "ball": "Blue" } } }, @@ -12513,19 +12000,13 @@ [ 4.5, 0, - "snack", - "Red, Blue" - ], - [ - 4.8, - 0, "face", - "Red, Blue" + "Red, Def/MyColor" ], [ 5.0, 0, - "face", + "ball", "Green" ] ] @@ -12536,9 +12017,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "face": "((Blue, Green), Def/MyColor, Onset)", + "ball": "(Def/Acc/7, Onset)" } } }, @@ -12555,18 +12035,6 @@ "face", "Blue" ], - [ - 4.7, - 0, - "face", - "Blue" - ], - [ - 4.8, - 0, - "snack", - "Blue" - ], [ 5.0, 0, @@ -12581,8 +12049,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duration-group", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "alt_codes": [], + "name": "temporal-tag-error-duplicated-onset-or-offset", + "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12590,16 +12060,160 @@ ], "tests": { "string_tests": { + "fails": [], + "passes": [] + }, + "sidecar_tests": { + "fails": [], + "passes": [] + }, + "event_tests": { + "fails": [], + "passes": [] + }, + "combo_tests": { "fails": [ - "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))", - "(Duration/3.0 s, (Green), (Blue))", - "(Delay/3.0 s, (Green), (Blue))" + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Green), Onset)", + "ball": "Blue" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "(Def/MyColor, (Blue), Onset)" + ], + [ + 5.0, + 0, + "ball", + "Green" + ] + ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Green), Onset)", + "ball": "(Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "(Def/MyColor, Offset)" + ], + [ + 5.0, + 0, + "ball", + "(Def/MyColor, Offset)" + ] + ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Green), Onset)", + "ball": "(Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "(Def/MyColor, Offset)" + ], + [ + 5.0, + 0, + "ball", + "(Def/MyColor, Offset)" + ] + ] + } ], "passes": [ - "(Duration/3.0 s, Delay/2.0 s, (Blue))", - "(Duration/3.0 s, (Blue))", - "(Delay/3.0 s, (Blue))" + { + "sidecar": { + "event_code": { + "HED": { + "face": "((Blue, Green), Def/MyColor, Onset)", + "ball": "(Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "Blue" + ], + [ + 5.0, + 0, + "ball", + "Green" + ] + ] + } ] + } + } + }, + { + "error_code": "TEMPORAL_TAG_ERROR", + "alt_codes": [], + "name": "temporal-tag-error-inset-outside-its-event", + "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", + "warning": false, + "schema": "8.2.0", + "definitions": [ + "(Definition/Acc/#, (Acceleration/#, Red))", + "(Definition/MyColor, (Label/Pie))" + ], + "tests": { + "string_tests": { + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [], @@ -12614,19 +12228,19 @@ "HED" ], [ - 5.0, + 4.5, 0, - "(Duration/3.0 s, Delay/2.0 s)" + "(Inset, (Red))" ], [ - 5.5, + 6.5, 0, - "(Duration/3.0 s, Delay/2.0 s, Event)" + "Red, (Def/MyColor, Offset)" ], [ - 6.0, + 5.5, 0, - "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))" + "(Def/MyColor, Offset)" ] ] ], @@ -12640,31 +12254,30 @@ [ 4.5, 0, - "((Blue), Duration/3.0 s)" + "(Def/MyColor, Onset)" ], [ - 4.8, + 5.5, 0, - "((Green), Delay/2.0 s)" + "(Def/MyColor, Offset)" ], [ - 5.0, + 6.5, 0, - "((Green), Duration/3.0 s, Delay/2.0 s)" + "Red" ] ] ] }, "combo_tests": { - "fails": [], - "passes": [ + "fails": [ { "sidecar": { "event_code": { "HED": { - "face": "(Duration/3.0 s, (Event))", - "ball": "(Delay/3.0 s, (Event))", - "snack": "(Duration/3.0 s, Delay/2.0 s, (Event))" + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, @@ -12678,11 +12291,44 @@ [ 4.5, 0, + "snack", + "Red, Blue" + ], + [ + 4.8, + 0, "face", - "Blue" + "Red, Blue" ], [ - 4.7, + 5.0, + 0, + "face", + "Green" + ] + ] + } + ], + "passes": [ + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, 0, "face", "Blue" @@ -12707,8 +12353,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-tag-appears-where-not-allowed", - "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "alt_codes": [], + "name": "temporal-tag-error-inset-group-has-extras", + "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12727,22 +12375,27 @@ "fails": [ [ [ + "onset", "duration", "HED" ], [ + 2.5, 0, "Red, (Def/MyColor, Onset)" ], [ + 4.5, 0, - "(Def/MyColor, Yellow, Inset)" + "(Def/MyColor, Blue, Inset)" ], [ + 6.5, 0, "Red, (Def/MyColor, Onset)" ], [ + 5.5, 0, "(Def/MyColor, Offset)" ] @@ -12751,22 +12404,27 @@ "passes": [ [ [ + "onset", "duration", "HED" ], [ + 4.5, 0, - "(Def/MyColor, (Blue))" + "(Def/MyColor, (Blue), Onset)" ], [ + 4.8, 0, - "(Def/MyColor, (Green))" + "(Def/MyColor, (Green), Inset)" ], [ + 5.5, 0, - "(Def/MyColor)" + "(Def/MyColor, Offset)" ], [ + 6.5, 0, "Red" ] @@ -12787,44 +12445,28 @@ }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ - "face", - "Def/MyColor, Red, Blue" - ], - [ - "ball", - "Def/MyColor, Red, Blue" - ], - [ + 4.5, + 0, "snack", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Def/MyColor, Duration)", - "ball": "(Def/MyColor, Delay)" - } - } - }, - "events": [ - [ - "event_code", - "HED" + "Red, Blue" ], [ + 4.8, + 0, "face", - "Def/MyColor, Red, Blue" + "Red, Blue" ], [ - "ball", - "Def/MyColor, Red, Blue" + 5.0, + 0, + "face", + "Green" ] ] } @@ -12834,28 +12476,42 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor)", - "ball": "(Def/MyColor)", - "snack": "(Def/MyColor)" + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ + 4.5, + 0, "face", "Blue" ], [ + 4.7, + 0, "face", "Blue" ], [ + 4.8, + 0, "snack", "Blue" + ], + [ + 5.0, + 0, + "ball", + "Green, Def/MyColor" ] ] } @@ -12865,8 +12521,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-not-tag-group-delay", - "description": "An Onset or Offset tag does not appear in a tag group.", + "alt_codes": [], + "name": "temporal-tag-error-duration-group", + "description": "A Duration or Delay has extra tags or groups.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12875,33 +12533,19 @@ "tests": { "string_tests": { "fails": [ - "Onset, Red", - "Offset, Def/Acc/5.4 m-per-s^2" + "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))", + "(Duration/3.0 s, (Green), (Blue))", + "(Delay/3.0 s, (Green), (Blue))" ], "passes": [ - "(Onset, Def/Acc/5.4 m-per-s^2)" + "(Duration/3.0 s, Delay/2.0 s, (Blue))", + "(Duration/3.0 s, (Blue))", + "(Delay/3.0 s, (Blue))" ] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Onset, Red", - "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ @@ -12912,19 +12556,19 @@ "HED" ], [ - 4.5, + 5.0, 0, - "Delay/1.0 s, Onset, Red" + "(Duration/3.0 s, Delay/2.0 s)" ], [ - 4.8, + 5.5, 0, - "(Onset, MyColor)" + "(Duration/3.0 s, Delay/2.0 s, Event)" ], [ - 5.0, + 6.0, 0, - "Delay/1.0 s, Offset, MyColor" + "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))" ] ] ], @@ -12932,72 +12576,37 @@ [ [ "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 6.3, - 0, - "(Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2)" - ] - ] - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Onset, Red", - "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "ball", - "Onset, Red" - ], - [ - 4.8, - 0, - "n/a", - "(Onset/MyColor)" - ], - [ - 5.0, - 0, - "face", - "Offset, MyColor" - ] + "duration", + "HED" + ], + [ + 4.5, + 0, + "((Blue), Duration/3.0 s)" + ], + [ + 4.8, + 0, + "((Green), Delay/2.0 s)" + ], + [ + 5.0, + 0, + "((Green), Duration/3.0 s, Delay/2.0 s)" ] - } - ], + ] + ] + }, + "combo_tests": { + "fails": [], "passes": [ { "sidecar": { "event_code": { "HED": { - "face": "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + "face": "(Duration/3.0 s, (Event))", + "ball": "(Delay/3.0 s, (Event))", + "snack": "(Duration/3.0 s, Delay/2.0 s, (Event))" } } }, @@ -13009,28 +12618,28 @@ "HED" ], [ - 5.5, + 4.5, 0, - "n/a", - "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + "face", + "Blue" ], [ - 6.3, + 4.7, 0, - "n/a", - "(Offset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + "face", + "Blue" ], [ - 8.5, + 4.8, 0, - "face", + "snack", "Blue" ], [ - 9.0, + 5.0, 0, - "n/a", - "Green, (Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)" + "ball", + "Green, Def/MyColor" ] ] } @@ -13040,8 +12649,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-nested-group-delay", - "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-tag-appears-where-not-allowed", + "description": "A temporal tag appears appears in a tsv with no onset column", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13049,59 +12662,63 @@ ], "tests": { "string_tests": { - "fails": [ - "((Delay/5.0 s, Onset, Def/MyColor), Red)" - ], - "passes": [ - "(Delay/5.0 s, Onset, Def/MyColor), Red" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "((Delay/5.0 s, Onset, Def/MyColor), Red)" + "(Duration/5 s, (Red))" + ], + [ + 0, + "Red, (Def/MyColor, Onset)" + ], + [ + 0, + "(Def/MyColor, Yellow, Inset)" + ], + [ + 0, + "Red, (Def/MyColor, Onset)" + ], + [ + 0, + "(Def/MyColor, Offset)" ] ] ], "passes": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor), Red" + "(Def/MyColor, (Blue))" + ], + [ + 0, + "(Def/MyColor, (Green))" + ], + [ + 0, + "(Def/MyColor)" + ], + [ + 0, + "Red" ] ] ] @@ -13112,30 +12729,58 @@ "sidecar": { "event_code": { "HED": { - "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "n/a", - "((Delay/5.0 s, Onset, Def/MyColor), Red)" + "(Duration/5.0, (Red))" ], [ - 5.0, - 0, "face", + "Def/MyColor, Red, Blue" + ], + [ + "ball", + "Def/MyColor, Red, Blue" + ], + [ + "snack", "Green" ] ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Duration/5.0, (Red))", + "ball": "(Delay/4.0, (Green))" + } + } + }, + "events": [ + [ + "event_code", + "HED" + ], + [ + "face", + "Def/MyColor, Red, Blue" + ], + [ + "ball", + "Def/MyColor, Red, Blue" + ] + ] } ], "passes": [ @@ -13143,28 +12788,28 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" + "face": "(Def/MyColor)", + "ball": "(Def/MyColor)", + "snack": "(Def/MyColor)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "face", "Blue" ], [ - 5.0, - 0, - "n/a", - "(Delay/5.0 s, Onset, Def/MyColor), Red" + "face", + "Blue" + ], + [ + "snack", + "Blue" ] ] } @@ -13174,8 +12819,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-wrong-number-of-defs-delay", - "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-not-tag-group-delay", + "description": "A Delay is not in the tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13184,11 +12833,11 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Onset, (Red))" + "Delay, Red", + "Delay, Def/Acc/5.4 m-per-s^2" ], "passes": [ - "(Delay/5.0 s, Onset, Def/MyColor, (Red))", - "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + "(Delay/5 s, (Def/Acc/5.4 m-per-s^2))" ] }, "sidecar_tests": { @@ -13196,8 +12845,8 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, (Red))", - "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "Blue, Red", + "ball": "Delay/5.0 s, Def/Acc/5.4 m-per-s^2" } } } @@ -13206,7 +12855,7 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "face": "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" } } } @@ -13223,12 +12872,17 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, (Red))" + "Delay/1.0 s, Onset, Red" ], [ - 5.5, + 4.8, 0, - "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "(Onset, MyColor)" + ], + [ + 5.0, + 0, + "Delay/1.0 s, Offset, MyColor" ] ] ], @@ -13242,7 +12896,17 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" + ], + [ + 6.3, + 0, + "(Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2)" ] ] ] @@ -13253,8 +12917,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, (Red))", - "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "Onset, Red", + "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" } } }, @@ -13268,20 +12932,20 @@ [ 4.5, 0, - "face", - "Green, Def/MyColor" + "ball", + "Onset, Red" ], [ - 5.0, + 4.8, 0, "n/a", - "(Delay/5.0 s, Onset, (Yellow))" + "(Onset/MyColor)" ], [ - 6.0, + 5.0, 0, - "ball", - "n/a" + "face", + "Offset, MyColor" ] ] } @@ -13291,7 +12955,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "face": "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" } } }, @@ -13303,16 +12967,28 @@ "HED" ], [ - 4.5, + 5.5, + 0, + "n/a", + "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + ], + [ + 6.3, + 0, + "n/a", + "(Offset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + ], + [ + 8.5, 0, "face", "Blue" ], [ - 5.0, + 9.0, 0, "n/a", - "(Delay/5.0 s, Onset, Def/MyColor, (Blue))" + "Green, (Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)" ] ] } @@ -13322,8 +12998,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-onset-has-more-groups-delay", - "description": "An Onset group has more than one additional tag group.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-nested-group-delay", + "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13332,21 +13011,18 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" + "((Delay/5.0 s, Onset, Def/MyColor), Red)" ], "passes": [ - "(Delay/5.0 s, Onset, Def/MyColor)", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Red), Onset)" + "(Delay/5.0 s, Onset, Def/MyColor), Red" ] }, "sidecar_tests": { "fails": [ { "event_code": { - "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" + "HED": { + "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" } } } @@ -13355,8 +13031,7 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" } } } @@ -13373,12 +13048,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" + "((Delay/5.0 s, Onset, Def/MyColor), Red)" ] ] ], @@ -13392,12 +13062,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor)" - ], - [ - 5.0, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "(Delay/5.0 s, Onset, Def/MyColor), Red" ] ] ] @@ -13408,8 +13073,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", - "ball": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" + "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" } } }, @@ -13423,20 +13087,14 @@ [ 4.5, 0, - "face", - "Red, Def/MyColor" + "n/a", + "((Delay/5.0 s, Onset, Def/MyColor), Red)" ], [ 5.0, 0, - "ball", + "face", "Green" - ], - [ - 6.0, - 0, - "n/a", - "(Delay/5.0 s, Def/MyColor, (Red), (Blue), Onset)" ] ] } @@ -13446,8 +13104,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" } } }, @@ -13461,14 +13118,14 @@ [ 4.5, 0, - "n/a", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face", + "Blue" ], [ 5.0, 0, - "ball", - "Green, Def/MyColor" + "n/a", + "(Delay/5.0 s, Onset, Def/MyColor), Red" ] ] } @@ -13478,8 +13135,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-offset-has-groups-delay", - "description": "An Offset appears with one or more tags or additional tag groups.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-wrong-number-of-defs-delay", + "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13488,11 +13148,11 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Offset, Def/MyColor, Red)", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, (Red))" + "(Delay/5.0 s, Onset, (Red))" ], "passes": [ - "(Delay/5.0 s, Offset, Def/MyColor)" + "(Delay/5.0 s, Onset, Def/MyColor, (Red))", + "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" ] }, "sidecar_tests": { @@ -13500,10 +13160,8 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "(Delay/5.0 s, Onset, (Red))", + "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" } } } @@ -13512,10 +13170,7 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor)", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" } } } @@ -13532,22 +13187,12 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Delay/5.0 s, Offset, Def/MyColor, (Red))" - ], - [ - 4.9, - 0, - "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "(Delay/5.0 s, Onset, (Red))" ], [ 5.5, 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), Offset)" + "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" ] ] ], @@ -13561,22 +13206,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Delay/5.0 s, Offset, Def/MyColor)" - ], - [ - 4.9, - 0, "(Delay/5.0 s, Onset, Def/MyColor, (Red))" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" ] ] ] @@ -13587,10 +13217,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "(Delay/5.0 s, Onset, (Red))", + "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" } } }, @@ -13605,25 +13233,19 @@ 4.5, 0, "face", - "n/a" + "Green, Def/MyColor" ], [ - 4.8, + 5.0, 0, - "square", - "n/a" + "n/a", + "(Delay/5.0 s, Onset, (Yellow))" ], [ - 4.9, + 6.0, 0, "ball", - "Green" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" + "n/a" ] ] } @@ -13633,10 +13255,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor)", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" } } }, @@ -13651,25 +13270,13 @@ 4.5, 0, "face", - "n/a" - ], - [ - 4.8, - 0, - "square", - "n/a" - ], - [ - 4.9, - 0, - "ball", - "Green" + "Blue" ], [ - 5.5, + 5.0, 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" + "n/a", + "(Delay/5.0 s, Onset, Def/MyColor, (Blue))" ] ] } @@ -13679,8 +13286,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-mismatch-delay", - "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-onset-has-more-groups-delay", + "description": "An Onset group has more than one additional tag group.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13688,12 +13298,36 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" + ], + "passes": [ + "(Delay/5.0 s, Onset, Def/MyColor)", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Red), Onset)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + } + } + } + ] }, "event_tests": { "fails": [ @@ -13706,17 +13340,12 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Offset)" + "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" ], [ 5.5, 0, - "(Delay/5.0 s, Def/MyColor, Offset)" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" ] ] ], @@ -13730,17 +13359,12 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Onset)" + "(Delay/5.0 s, Onset, Def/MyColor)" ], [ - 6.5, + 5.0, 0, - "Red" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ] ] ] @@ -13751,8 +13375,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)" + "face": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", + "ball": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" } } }, @@ -13766,20 +13390,20 @@ [ 4.5, 0, - "ball", - "Red, Blue" + "face", + "Red, Def/MyColor" ], [ - 4.8, + 5.0, 0, "ball", - "Red, Blue" + "Green" ], [ - 5.0, + 6.0, 0, - "face", - "Green" + "n/a", + "(Delay/5.0 s, Def/MyColor, (Red), (Blue), Onset)" ] ] } @@ -13789,8 +13413,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" } } }, @@ -13804,13 +13428,13 @@ [ 4.5, 0, - "ball", - "Blue" + "n/a", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ], [ 5.0, 0, - "face", + "ball", "Green, Def/MyColor" ] ] @@ -13821,8 +13445,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-extra tags-delay", - "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-offset-has-groups-delay", + "description": "An Offset appears with one or more tags or additional tag groups.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13831,10 +13458,11 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + "(Delay/5.0 s, Offset, Def/MyColor, Red)", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, (Red))" ], "passes": [ - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + "(Delay/5.0 s, Offset, Def/MyColor)" ] }, "sidecar_tests": { @@ -13842,7 +13470,10 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" } } } @@ -13851,7 +13482,10 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor)", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" } } } @@ -13866,9 +13500,24 @@ "HED" ], [ - 4.5, + 4.5, + 0, + "(Delay/5.0 s, Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Delay/5.0 s, Offset, Def/MyColor, (Red))" + ], + [ + 4.9, + 0, + "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + ], + [ + 5.5, 0, - "(Delay/5.0 s, Def/MyColor, Blue, (Green), Onset)" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), Offset)" ] ] ], @@ -13882,7 +13531,22 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + "(Delay/5.0 s, Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Delay/5.0 s, Offset, Def/MyColor)" + ], + [ + 4.9, + 0, + "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" ] ] ] @@ -13893,8 +13557,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)", - "ball": "Blue" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" } } }, @@ -13909,13 +13575,25 @@ 4.5, 0, "face", - "Red, Def/MyColor" + "n/a" ], [ - 5.0, + 4.8, + 0, + "square", + "n/a" + ], + [ + 4.9, 0, "ball", "Green" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -13925,8 +13603,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/Acc/7, Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor)", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" } } }, @@ -13940,14 +13620,26 @@ [ 4.5, 0, + "face", + "n/a" + ], + [ + 4.8, + 0, + "square", + "n/a" + ], + [ + 4.9, + 0, "ball", - "Blue" + "Green" ], [ - 5.0, + 5.5, 0, - "face", - "Green, Def/MyColor" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -13957,8 +13649,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duplicated-onset-or-offset-delay", - "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-mismatch-delay", + "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -13974,8 +13669,54 @@ "passes": [] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 6.5, + 0, + "Red, (Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 5.5, + 0, + "(Def/MyColor, Onset)" + ], + [ + 6.5, + 0, + "Red" + ] + ] + ] }, "combo_tests": { "fails": [ @@ -13983,8 +13724,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", - "ball": "Blue" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)" } } }, @@ -13998,74 +13739,20 @@ [ 4.5, 0, - "face", - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" - ], - [ - 5.0, - 0, "ball", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "(Delay/5.0 s, Def/MyColor, Offset)" + "Red, Blue" ], [ - 5.0, + 4.8, 0, "ball", - "(Delay/5.0 s, Def/MyColor, Offset)" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "(Delay/5.0 s, Def/MyColor, Offset)" + "Red, Blue" ], [ 5.0, 0, - "ball", - "(Delay/5.0 s, Def/MyColor, Offset)" + "face", + "Green" ] ] } @@ -14075,8 +13762,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Onset)" + "face": "(Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)" } } }, @@ -14090,14 +13777,14 @@ [ 4.5, 0, - "face", + "ball", "Blue" ], [ 5.0, 0, - "ball", - "Green" + "face", + "Green, Def/MyColor" ] ] } @@ -14107,8 +13794,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-outside-its-event-delay", - "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-extra tags-delay", + "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -14116,12 +13806,32 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + ], + "passes": [ + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + } + } + } + ] }, "event_tests": { "fails": [ @@ -14134,17 +13844,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Inset, (Red))" - ], - [ - 6.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Def/MyColor, Offset)" + "(Delay/5.0 s, Def/MyColor, Blue, (Green), Onset)" ] ] ], @@ -14158,17 +13858,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" ] ] ] @@ -14179,9 +13869,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Delay/5.0 s, Def/MyColor, Inset)" + "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)", + "ball": "Blue" } } }, @@ -14195,19 +13884,13 @@ [ 4.5, 0, - "snack", - "Red, Blue" - ], - [ - 4.8, - 0, "face", - "Red, Blue" + "Red, Def/MyColor" ], [ 5.0, 0, - "face", + "ball", "Green" ] ] @@ -14218,9 +13901,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/2.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/Acc/7, Onset)" } } }, @@ -14232,13 +13914,7 @@ "HED" ], [ - 1.5, - 0, - "face", - "Blue" - ], - [ - 4.8, + 4.5, 0, "ball", "Blue" @@ -14246,7 +13922,7 @@ [ 5.0, 0, - "snack", + "face", "Green, Def/MyColor" ] ] @@ -14257,8 +13933,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-group-has-extras-delay", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-duplicated-onset-or-offset-delay", + "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -14274,64 +13953,8 @@ "passes": [] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 2.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 4.5, - 0, - "(Delay/5.0 s, Def/MyColor, Blue, Inset)" - ], - [ - 6.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(DDelay/5.0 s, ef/MyColor, Offset)" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" - ], - [ - 4.8, - 0, - "(Delay/5.0 s, Def/MyColor, (Green), Inset)" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ @@ -14339,9 +13962,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Delay/5.0 s, Def/MyColor, Inset)" + "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", + "ball": "Blue" } } }, @@ -14355,32 +13977,53 @@ [ 4.5, 0, - "snack", - "Red, Blue" + "face", + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" ], [ - 4.8, + 5.0, + 0, + "ball", + "Green" + ] + ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, 0, "face", - "Red, Blue" + "(Delay/5.0 s, Def/MyColor, Offset)" ], [ 5.0, 0, - "face", - "Green" + "ball", + "(Delay/5.0 s, Def/MyColor, Offset)" ] ] - } - ], - "passes": [ + }, { "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Delay/5.0 s, Def/MyColor, Inset)" + "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Onset)" } } }, @@ -14395,25 +14038,45 @@ 4.5, 0, "face", - "Blue" + "(Delay/5.0 s, Def/MyColor, Offset)" ], [ - 4.7, + 5.0, 0, - "face", - "Blue" + "ball", + "(Delay/5.0 s, Def/MyColor, Offset)" + ] + ] + } + ], + "passes": [ + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" ], [ - 4.8, + 4.5, 0, - "snack", + "face", "Blue" ], [ 5.0, 0, "ball", - "Green, Def/MyColor" + "Green" ] ] } @@ -14423,8 +14086,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-tag-appears-where-not-allowed-delay", - "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-inset-outside-its-event-delay", + "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -14443,22 +14109,22 @@ "fails": [ [ [ + "onset", "duration", "HED" ], [ + 4.5, 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 0, - "(Delay/5.0 s, Def/MyColor, Yellow, Inset)" + "(Delay/5.0 s, Inset, (Red))" ], [ + 6.5, 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" + "Red, (Delay/5.0 s, Def/MyColor, Offset)" ], [ + 5.5, 0, "(Delay/5.0 s, Def/MyColor, Offset)" ] @@ -14467,22 +14133,22 @@ "passes": [ [ [ + "onset", "duration", "HED" ], [ + 4.5, 0, - "(Def/MyColor, (Blue))" - ], - [ - 0, - "(Def/MyColor, (Green))" + "(Delay/5.0 s, Def/MyColor, Onset)" ], [ + 5.5, 0, - "(Def/MyColor)" + "(Delay/5.0 s, Def/MyColor, Offset)" ], [ + 6.5, 0, "Red" ] @@ -14503,44 +14169,28 @@ }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ - "face", - "Def/MyColor, Red, Blue" - ], - [ - "ball", - "Def/MyColor, Red, Blue" - ], - [ + 4.5, + 0, "snack", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Duration)", - "ball": "(Delay/5.0 s, Def/MyColor, Delay)" - } - } - }, - "events": [ - [ - "event_code", - "HED" + "Red, Blue" ], [ + 4.8, + 0, "face", - "Def/MyColor, Red, Blue" + "Red, Blue" ], [ - "ball", - "Def/MyColor, Red, Blue" + 5.0, + 0, + "face", + "Green" ] ] } @@ -14550,28 +14200,36 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor)", - "ball": "(Def/MyColor)", - "snack": "(Def/MyColor)" + "face": "(Delay/2.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ + 1.5, + 0, "face", "Blue" ], [ - "face", + 4.8, + 0, + "ball", "Blue" ], [ + 5.0, + 0, "snack", - "Blue" + "Green, Def/MyColor" ] ] } @@ -14580,45 +14238,25 @@ } }, { - "error_code": "TILDES_UNSUPPORTED", - "name": "tildes-unsupported", - "description": "The tilde syntax is no longer supported for any version of HED.", - "schema": "8.3.0", + "error_code": "TEMPORAL_TAG_ERROR", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-inset-group-has-extras-delay", + "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [ - "Red ~ Blue", - "Red, Blue ~ Green ~ Yellow" - ], - "passes": [ - "Red, Blue" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Red ~ Blue", - "ball": "Red, Blue ~ Green ~ Yellow" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ @@ -14628,15 +14266,25 @@ "duration", "HED" ], + [ + 2.5, + 0, + "Red, (Delay/5.0 s, Def/MyColor, Onset)" + ], [ 4.5, 0, - "Red ~ Blue" + "(Delay/5.0 s, Def/MyColor, Blue, Inset)" ], [ - 5.0, + 6.5, 0, - "Red, Blue ~ Green ~ Yellow" + "Red, (Delay/5.0 s, Def/MyColor, Onset)" + ], + [ + 5.5, + 0, + "(DDelay/5.0 s, ef/MyColor, Offset)" ] ] ], @@ -14650,7 +14298,22 @@ [ 4.5, 0, - "(Red, Blue), (Green, (Yellow))" + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + ], + [ + 4.8, + 0, + "(Delay/5.0 s, Def/MyColor, (Green), Inset)" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 6.5, + 0, + "Red" ] ] ] @@ -14661,8 +14324,9 @@ "sidecar": { "event_code": { "HED": { - "face": "Red ~ Blue", - "ball": "Red, Blue ~ Green ~ Yellow" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Delay/5.0 s, Def/MyColor, Inset)" } } }, @@ -14676,14 +14340,20 @@ [ 4.5, 0, + "snack", + "Red, Blue" + ], + [ + 4.8, + 0, "face", - "Red, Def/MyColor" + "Red, Blue" ], [ 5.0, 0, - "ball", - "Blue ~ Green ~ Yellow" + "face", + "Green" ] ] } @@ -14693,8 +14363,9 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Delay/5.0 s, Def/MyColor, Inset)" } } }, @@ -14711,6 +14382,18 @@ "face", "Blue" ], + [ + 4.7, + 0, + "face", + "Blue" + ], + [ + 4.8, + 0, + "snack", + "Blue" + ], [ 5.0, 0, @@ -14724,82 +14407,72 @@ } }, { - "error_code": "UNITS_INVALID", - "name": "units-invalid-for-unit-class", - "description": "A tag has a value with units that are invalid or not of the correct unit class for the tag.", - "schema": "8.3.0", + "error_code": "TEMPORAL_TAG_ERROR", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-tag-appears-where-not-allowed-delay", + "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [ - "Def/Acc/3 s", - "Weight/3 ms" - ], - "passes": [ - "Distance/4 km" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Def/Acc/3 s", - "ball": "Weight/3 ms" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "Distance/4 km", - "ball": "Angle/4 degrees" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "Def/Acc/3 s" + "Red, (Delay/5.0 s, Def/MyColor, Onset)" ], [ - 5.5, 0, - "Weight/3 ms" + "(Delay/5.0 s, Def/MyColor, Yellow, Inset)" + ], + [ + 0, + "Red, (Delay/5.0 s, Def/MyColor, Onset)" + ], + [ + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" ] ] ], "passes": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "Distance/4 km" + "(Def/MyColor, (Blue))" ], [ - 5.0, 0, - "Angle/4 degrees" + "(Def/MyColor, (Green))" + ], + [ + 0, + "(Def/MyColor)" + ], + [ + 0, + "Red" ] ] ] @@ -14810,31 +14483,54 @@ "sidecar": { "event_code": { "HED": { - "face": "Def/Acc/3 s", - "ball": "Weight/3 ms" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Delay/5.0 s, Def/MyColor, Inset)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "face", - "Red, Def/MyColor" + "Def/MyColor, Red, Blue" ], [ - 5.0, - 0, "ball", + "Def/MyColor, Red, Blue" + ], + [ + "snack", "Green" ] ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, Duration)", + "ball": "(Delay/5.0 s, Def/MyColor, Delay)" + } + } + }, + "events": [ + [ + "event_code", + "HED" + ], + [ + "face", + "Def/MyColor, Red, Blue" + ], + [ + "ball", + "Def/MyColor, Red, Blue" + ] + ] } ], "passes": [ @@ -14842,29 +14538,28 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "face": "(Def/MyColor)", + "ball": "(Def/MyColor)", + "snack": "(Def/MyColor)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "face", "Blue" ], [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" + "face", + "Blue" + ], + [ + "snack", + "Blue" ] ] } @@ -14873,9 +14568,13 @@ } }, { - "error_code": "UNITS_INVALID", - "name": "units-invalid-si-units", - "description": "A unit modifier is applied to units that are not SI units.", + "error_code": "TILDES_UNSUPPORTED", + "alt_codes": [ + "CHARACTER_INVALID" + ], + "name": "tildes-unsupported", + "description": "The tilde syntax is no longer supported for any version of HED.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -14884,11 +14583,11 @@ "tests": { "string_tests": { "fails": [ - "Distance/3 kfeet", - "Distance/3 kmeters" + "Red ~ Blue", + "Red, Blue ~ Green ~ Yellow" ], "passes": [ - "Distance/3 kilometres" + "Red, Blue" ] }, "sidecar_tests": { @@ -14896,8 +14595,8 @@ { "event_code": { "HED": { - "face": "Distance/3 kfeet", - "ball": "Distance/3 kmeters" + "face": "Red ~ Blue", + "ball": "Red, Blue ~ Green ~ Yellow" } } } @@ -14906,7 +14605,8 @@ { "event_code": { "HED": { - "face": "Distance/3 kilometres" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" } } } @@ -14923,12 +14623,12 @@ [ 4.5, 0, - "Distance/3 kfeet" + "Red ~ Blue" ], [ 5.0, 0, - "Distance/3 kmeters" + "Red, Blue ~ Green ~ Yellow" ] ] ], @@ -14942,7 +14642,7 @@ [ 4.5, 0, - "Distance/3 kilometres" + "(Red, Blue), (Green, (Yellow))" ] ] ] @@ -14953,8 +14653,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Distance/3 kfeet", - "ball": "Distance/3 kmeters" + "face": "Red ~ Blue", + "ball": "Red, Blue ~ Green ~ Yellow" } } }, @@ -14975,7 +14675,7 @@ 5.0, 0, "ball", - "Green" + "Blue ~ Green ~ Yellow" ] ] } @@ -15016,10 +14716,11 @@ } }, { - "error_code": "UNITS_MISSING", - "name": "units-missing-on-node-with-unit-class", - "description": "A tag that takes value and has a unit class does not have units.", - "warning": true, + "error_code": "UNITS_INVALID", + "alt_codes": [], + "name": "units-invalid-for-unit-class", + "description": "A tag has a value with units that are invalid or not of the correct unit class for the tag.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -15028,7 +14729,8 @@ "tests": { "string_tests": { "fails": [ - "Acceleration/4.5" + "Def/Acc/3 s", + "Weight/3 ms" ], "passes": [ "Distance/4 km" @@ -15039,8 +14741,8 @@ { "event_code": { "HED": { - "face": "Def/Acc/3", - "ball": "Acceleration/4.5" + "face": "Def/Acc/3 s", + "ball": "Weight/3 ms" } } } @@ -15067,12 +14769,12 @@ [ 4.5, 0, - "Def/Acc/3" + "Def/Acc/3 s" ], [ 5.5, 0, - "Acceleration/4.5" + "Weight/3 ms" ] ] ], @@ -15102,8 +14804,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Def/Acc/3", - "ball": "Acceleration/4.5" + "face": "Def/Acc/3 s", + "ball": "Weight/3 ms" } } }, @@ -15135,7 +14837,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } }, @@ -15165,39 +14867,11 @@ } }, { - "error_code": "UNITS_MISSING", - "name": "units-missing-on-node-with-unit-class", - "description": "A tag that takes value and has a unit class does not have units.", - "warning": true, - "schema": "8.3.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [ - "Temperature/4.5" - ], - "passes": [ - "Temperature/4 oC" - ] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [], - "passes": [] - } - } - }, - { - "error_code": "VALUE_INVALID", - "name": "value-invalid-#-substitution", - "description": "The value substituted for a placeholder (`#`) is not valid.", + "error_code": "UNITS_INVALID", + "alt_codes": [], + "name": "units-invalid-si-units", + "description": "A unit modifier is applied to units that are not SI units.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -15206,13 +14880,11 @@ "tests": { "string_tests": { "fails": [ - "Def/Acc/MyMy", - "Distance/4mxxx", - "Acceleration/banana" + "Distance/3 kfeet", + "Distance/3 kmeters" ], "passes": [ - "Def/Acc/3.4 m-per-s^2", - "Distance/4 m" + "Distance/3 kilometres" ] }, "sidecar_tests": { @@ -15220,8 +14892,8 @@ { "event_code": { "HED": { - "face": "Def/Acc/MyMy", - "ball": "Distance/4mxxx" + "face": "Distance/3 kfeet", + "ball": "Distance/3 kmeters" } } } @@ -15230,8 +14902,7 @@ { "event_code": { "HED": { - "face": "Def/Acc/3.4 m-per-s^2", - "ball": "Distance/4 m" + "face": "Distance/3 kilometres" } } } @@ -15248,12 +14919,12 @@ [ 4.5, 0, - "Def/Acc/MyMy" + "Distance/3 kfeet" ], [ 5.0, 0, - "Distance/4mxxx" + "Distance/3 kmeters" ] ] ], @@ -15267,12 +14938,7 @@ [ 4.5, 0, - "Def/Acc/3.4 m-per-s^2" - ], - [ - 5.0, - 0, - "Distance/4 m" + "Distance/3 kilometres" ] ] ] @@ -15283,8 +14949,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Def/Acc/MyMy", - "ball": "Distance/4mxxx" + "face": "Distance/3 kfeet", + "ball": "Distance/3 kmeters" } } }, @@ -15346,9 +15012,11 @@ } }, { - "error_code": "VALUE_INVALID", - "name": "value-invalid-incompatible-value-class", - "description": "A tag value is incompatible with the specified value class.", + "error_code": "UNITS_MISSING", + "alt_codes": [], + "name": "units-missing-on-node-with-unit-class", + "description": "A tag that takes value and has a unit class does not have units.", + "warning": true, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -15357,10 +15025,10 @@ "tests": { "string_tests": { "fails": [ - "Statistical-accuracy/1max1" + "Acceleration/4.5" ], "passes": [ - "Statistical-accuracy/0.677" + "Distance/4 km" ] }, "sidecar_tests": { @@ -15368,7 +15036,8 @@ { "event_code": { "HED": { - "face": "Statistical-accuracy/1max1" + "face": "Def/Acc/3", + "ball": "Acceleration/4.5" } } } @@ -15377,7 +15046,8 @@ { "event_code": { "HED": { - "face": "Statistical-accuracy/0.677" + "face": "Distance/4 km", + "ball": "Angle/4 degrees" } } } @@ -15394,7 +15064,12 @@ [ 4.5, 0, - "Statistical-accuracy/1max1" + "Def/Acc/3" + ], + [ + 5.5, + 0, + "Acceleration/4.5" ] ] ], @@ -15408,7 +15083,12 @@ [ 4.5, 0, - "Statistical-accuracy/0.677" + "Distance/4 km" + ], + [ + 5.0, + 0, + "Angle/4 degrees" ] ] ] @@ -15419,7 +15099,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Statistical-accuracy/1max1" + "face": "Def/Acc/3", + "ball": "Acceleration/4.5" } } }, @@ -15451,7 +15132,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7 m-per-s^2, Blue" } } }, @@ -15480,10 +15161,46 @@ } } }, + { + "error_code": "UNITS_MISSING", + "alt_codes": [], + "name": "units-missing-on-node-with-unit-class", + "description": "A tag that takes value and has a unit class does not have units.", + "warning": true, + "schema": "8.3.0", + "definitions": [], + "tests": { + "string_tests": { + "fails": [ + "Temperature/4.5" + ], + "passes": [ + "Temperature/4 oC" + ] + }, + "sidecar_tests": { + "fails": [], + "passes": [] + }, + "event_tests": { + "fails": [], + "passes": [] + }, + "combo_tests": { + "fails": [], + "passes": [] + } + } + }, { "error_code": "VALUE_INVALID", - "name": "value-invalid-value-class-missing", - "description": "A tag value with no value class is assumed to be a text and contains invalid characters.", + "alt_codes": [ + "CHARACTER_INVALID", + "TAG_INVALID" + ], + "name": "value-invalid-#-substitution", + "description": "The value substituted for a placeholder (`#`) is not valid.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -15491,20 +15208,16 @@ ], "tests": { "string_tests": { - "fails": [ - "Age/x123 asdf", - "Def/Acc/apple3" - ], - "passes": [ - "Collection/This-collection" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [ { "event_code": { "HED": { - "face": "Age/x123 asdf" + "face": "Def/Acc/MyMy", + "ball": "Distance/4mxxx" } } } @@ -15513,58 +15226,30 @@ { "event_code": { "HED": { - "face": "Collection/This-collection" + "face": "Def/Acc/3.4 m-per-s^2", + "ball": "Distance/4 m" } } } ] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Age/x123 asdf" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Collection/This-collection" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ { "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" - } + "response": { + "HED": "Item-count/#" } }, "events": [ [ "onset", "duration", - "event_code", + "response", "HED" ], [ @@ -15576,7 +15261,7 @@ [ 5.0, 0, - "ball", + 4, "Green" ] ] @@ -15585,30 +15270,27 @@ "passes": [ { "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" - } + "response": { + "HED": "Item-count/#" } }, "events": [ [ "onset", "duration", - "event_code", + "response", "HED" ], [ 4.5, 0, - "face", + 5, "Blue" ], [ 5.0, 0, - "ball", + 2, "Green, Def/MyColor" ] ] @@ -15619,8 +15301,12 @@ }, { "error_code": "VALUE_INVALID", - "name": "value-invalid-blank-missing", - "description": "The units are not separated from the value by a single blank.", + "alt_codes": [ + "CHARACTER_INVALID" + ], + "name": "value-invalid-incompatible-value-class", + "description": "A tag placeholder value is incompatible with the specified value class.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -15629,10 +15315,10 @@ "tests": { "string_tests": { "fails": [ - "Def/Acc/5m-per-s^2" + "Statistical-accuracy/1max1" ], "passes": [ - "Def/Acc/5 m-per-s^2" + "Statistical-accuracy/0.677" ] }, "sidecar_tests": { @@ -15640,7 +15326,7 @@ { "event_code": { "HED": { - "face": "Def/Acc/5m-per-s^2" + "face": "Statistical-accuracy/1max1" } } } @@ -15649,7 +15335,7 @@ { "event_code": { "HED": { - "face": "Def/Acc/5 m-per-s^2" + "face": "Statistical-accuracy/0.677" } } } @@ -15666,7 +15352,7 @@ [ 4.5, 0, - "Def/Acc/5m-per-s^2" + "Statistical-accuracy/1max1" ] ] ], @@ -15680,7 +15366,7 @@ [ 4.5, 0, - "Def/Acc/5 m-per-s^2" + "Statistical-accuracy/0.677" ] ] ] @@ -15691,8 +15377,7 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" + "face": "Statistical-accuracy/1max1" } } }, @@ -15755,8 +15440,14 @@ }, { "error_code": "VALUE_INVALID", - "name": "value-invalid-#-value-class", - "description": "An extension or a value substituted for a `#` is not allowed by its value class.", + "alt_codes": [ + "CHARACTER_INVALID", + "TAG_INVALID", + "UNITS_INVALID" + ], + "name": "value-invalid-blank-missing-before-units", + "description": "The units are not separated from the value by a single blank.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -15765,12 +15456,10 @@ "tests": { "string_tests": { "fails": [ - "Def/Acc/apple3, Blue", - "Acceleration/banana" + "Def/Acc/5m-per-s^2" ], "passes": [ - "Acceleration/3.4 m-per-s^2", - "Def/Acc/10.1 m-per-s^2" + "Def/Acc/5 m-per-s^2" ] }, "sidecar_tests": { @@ -15778,8 +15467,7 @@ { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" + "face": "Def/Acc/5m-per-s^2" } } } @@ -15788,8 +15476,7 @@ { "event_code": { "HED": { - "face": "Acceleration/6.8 m-per-s^2", - "ball": "Def/Acc/5.433 m-per-s^2, Blue" + "face": "Def/Acc/5 m-per-s^2" } } } @@ -15806,12 +15493,7 @@ [ 4.5, 0, - "Acceleration/banana" - ], - [ - 5.5, - 0, - "Def/Acc/apple3, Blue" + "Def/Acc/5m-per-s^2" ] ] ], @@ -15825,12 +15507,7 @@ [ 4.5, 0, - "Acceleration/6.8 m-per-s^2" - ], - [ - 5.5, - 0, - "Def/Acc/5.433 m-per-s^2, Blue" + "Def/Acc/5 m-per-s^2" ] ] ] @@ -15874,7 +15551,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } }, @@ -15905,6 +15582,7 @@ }, { "error_code": "VERSION_DEPRECATED", + "alt_codes": [], "name": "version-deprecated", "warning": true, "description": "The HED schema version being used as been deprecated.", diff --git a/tests/json_tests/DEFINITION_INVALID.json b/tests/json_tests/DEFINITION_INVALID.json index 763718b..a2a7236 100644 --- a/tests/json_tests/DEFINITION_INVALID.json +++ b/tests/json_tests/DEFINITION_INVALID.json @@ -1,7 +1,7 @@ [ { "error_code": "DEFINITION_INVALID", - "alt_codes": [], + "alt_codes": ["TAG_GROUP_ERROR"], "name": "definition-invalid-tag-group", "description": "A Definition tag does not appear in a tag group at the top level in an annotation.", "warning": false, @@ -403,7 +403,7 @@ }, { "error_code": "DEFINITION_INVALID", - "alt_codes": [], + "alt_codes": ["TAG_INVALID"], "name": "definition-invalid-placeholder-incorrect-of-positions", "description": "A definition has placeholders (`#`) in incorrect positions.", "warning": false, @@ -484,7 +484,7 @@ }, { "error_code": "DEFINITION_INVALID", - "alt_codes": [], + "alt_codes": ["TAG_INVALID"], "name": "definition-invalid-placeholder-conflict", "description": "Definitions of the same name appear with and without a `#`.", "warning": false, @@ -655,7 +655,7 @@ "description": "A tag with a required or unique attribute appears in a definition.", "warning": false, "schema": "8.3.0", - "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Event-context, Item, (Label/Pie))"], + "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))"], "tests": { "string_tests": { "fails": [ diff --git a/tests/json_tests/PLACEHOLDER_INVALID.json b/tests/json_tests/PLACEHOLDER_INVALID.json index 7f39378..eb4b504 100644 --- a/tests/json_tests/PLACEHOLDER_INVALID.json +++ b/tests/json_tests/PLACEHOLDER_INVALID.json @@ -252,7 +252,7 @@ }, { "error_code": "PLACEHOLDER_INVALID", - "alt_codes": [], + "alt_codes": ["TAG_EXTENSION_INVALID"], "name": "placeholder-invalid-json-#-misplaced", "description": "A placeholder (`#`) is used in JSON sidecar or definition, but its parent in the schema does not have a placeholder child.", "warning": false, diff --git a/tests/json_tests/SIDECAR_BRACES_INVALID.json b/tests/json_tests/SIDECAR_BRACES_INVALID.json index 1007357..e607883 100644 --- a/tests/json_tests/SIDECAR_BRACES_INVALID.json +++ b/tests/json_tests/SIDECAR_BRACES_INVALID.json @@ -1,7 +1,7 @@ [ { "error_code": "SIDECAR_BRACES_INVALID", - "alt_codes": [], + "alt_codes": ["CHARACTER_INVALID"], "name": "sidecar-braces-contents-invalid", "description": "The item in curly braces is not the word HED or a column name with HED annotations in the sidecar.", "warning": false, @@ -102,8 +102,8 @@ } }, { - "error_code": "VALUE_INVALID", - "alt_codes": [], + "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": ["VALUE_INVALID", "CHARACTER_INVALID", "UNITS_INVALID"], "name": "sidecar-braces-invalid-spot", "description": "A curly brace reference must only appear where a tag could.", "warning": false, @@ -394,125 +394,7 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", - "alt_codes": [], - "name": "sidecar-braces-self-reference", - "description": "The item in curly braces has a HED annotation that contains itself.", - "warning": false, - "schema": "8.2.0", - "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], - "tests": { - "string_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), {HED}", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "HED": "Label/#, {response_time}" - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - }, - "response_count": { - "Description": "A count used to test curly braces in value columns.", - "HED": "(Item-count/#, {response_time})" - } - }, - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2, {response_action})" - } - }, - "response_action": { - "Description": "Does not correspond to curly braces", - "HED": "Label/#" - } - } - ] - }, - "event_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#, {response_time}" - } - }, - "events": - [ - ["onset", "duration", "response_time", "event_code","HED"], - [ 4.5, 0, 3.4, "face", "Blue"], - [ 5.0, 0, 6.8, "ball", "Green, Def/MyColor"], - [ 5.2, 0, "n/a", "face", ""], - [ 5.5, 0, "any", "face", "n/a"] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": - [ - ["onset", "duration", "response_time", "event_code","HED"], - [ 4.5, 0, 3.4, "face", "Blue"], - [ 5.0, 0, 6.8, "ball", "Green, Def/MyColor"], - [ 5.2, 0, "n/a", "face", ""], - [ 5.5, 0, "any", "face", "n/a"] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "alt_codes": [], + "alt_codes": ["CHARACTER_INVALID", "VALUE_INVALID", "UNITS_INVALID"], "name": "sidecar-braces-appear-as-value-rather-than-tag", "description": "The curly braces are in a value rather than as a separate tag substitute.", "warning": false, @@ -624,197 +506,5 @@ ] } } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "alt_codes": [], - "name": "sidecar-braces-ref-not-hed-column", - "description": "Curly braces reference a column that exists, but isn't marked as hed data.", - "warning": false, - "schema": "8.2.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "sidecar_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "event_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{onset}" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": - [ - ["onset", "duration", "event_code","HED"], - [ 4.5, 0, "ball", "Blue"] - ] - } - ], - "passes": [ - ] - } - } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "alt_codes": [], - "name": "sidecar-braces-ref-ignore-column", - "description": "Curly braces reference a column that exists, but is marked ignore.", - "warning": false, - "schema": "8.2.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "sidecar_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "event_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{onset}" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": - [ - ["onset", "duration", "event_code","HED"], - [ 4.5, 0, "ball", "Blue"] - ] - } - ], - "passes": [ - ] - } - } - }, - { - "error_code": "CHARACTER_INVALID", - "alt_codes": [], - "name": "sidecar-braces-in-events-file", - "description": "The curly braces appear in HED column of events file.", - "warning": false, - "schema": "8.3.0", - "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], - "tests": { - "string_tests": { - "fails": [ - "{HED}, Def/MyColor" - ], - "passes": [ - ] - }, - "sidecar_tests": { - "fails": [ - ], - "passes": [ - ] - }, - "event_tests": { - "fails": [ - [ - ["onset", "duration", "HED"], - [ 4.5, 0, "{who_knows}, Red"] - ] - ], - "passes": [ - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": - [ - ["onset", "duration", "event_code","HED"], - [ 4.5, 0, "face", "Blue, {response_time}"], - [ 5.0, 0, "ball", "Green, Def/MyColor"], - [ 5.2, 0, "face", ""], - [ 5.5, 0, "face", "n/a"] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": - [ - ["onset", "duration", "event_code","HED", "response_time"], - [ 4.5, 0, "face", "Blue", 1], - [ 5.0, 0, "ball", "Green, Def/MyColor", 1], - [ 5.2, 0, "face", "", 1], - [ 5.5, 0, "face", "n/a", 1] - ] - } - ] - } - } } ] diff --git a/tests/json_tests/SIDECAR_KEY_MISSING.json b/tests/json_tests/SIDECAR_KEY_MISSING.json index 14fb640..2bdea9b 100644 --- a/tests/json_tests/SIDECAR_KEY_MISSING.json +++ b/tests/json_tests/SIDECAR_KEY_MISSING.json @@ -33,7 +33,7 @@ "event_code": { "HED": { "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" + "ball": "Black, Blue" } } }, diff --git a/tests/json_tests/TAG_GROUP_ERROR.json b/tests/json_tests/TAG_GROUP_ERROR.json index b2ecf0b..4753bf3 100644 --- a/tests/json_tests/TAG_GROUP_ERROR.json +++ b/tests/json_tests/TAG_GROUP_ERROR.json @@ -1,7 +1,7 @@ [ { "error_code": "TAG_GROUP_ERROR", - "alt_codes": [], + "alt_codes": ["TEMPORAL_TAG_ERROR"], "name": "tag-group-error-missing", "description": "A tag has tagGroup or topLevelTagGroup attribute, but is not enclosed in parentheses.", "warning": false, @@ -10,7 +10,7 @@ "tests": { "string_tests": { "fails": [ - "Definition, (Red)", + "Definition/Blech, (Red)", "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", "Onset", "Duration/3.0 s", @@ -103,7 +103,7 @@ }, { "error_code": "TAG_GROUP_ERROR", - "alt_codes": [], + "alt_codes": ["TEMPORAL_TAG_ERROR"], "name": "tag-group-error-not-top-level", "description": "A tag with the topLevelTagGroup does not appear at a HED tag group at the top level in an assembled HED annotation.", "warning": false, @@ -124,8 +124,18 @@ }, "event_tests": { "fails": [ + [ + ["onset", "duration", "event_code","HED"], + [ 4.5, 0, "face", "Red, Def/MyColor, ((Duration/5 s, (Red)))"], + [ 5.0, 0, "ball", "Green"] + ] ], "passes": [ + [ + ["onset", "duration", "event_code","HED"], + [ 4.5, 0, "face", "Red, Def/MyColor, (Duration/5 s, (Red))"], + [ 5.0, 0, "ball", "Green"] + ] ] }, "combo_tests": { @@ -170,7 +180,7 @@ }, { "error_code": "TAG_GROUP_ERROR", - "alt_codes": [], + "alt_codes": ["TEMPORAL_TAG_ERROR"], "name": "multiple-top-level-tags-in-same-group", "description": "Multiple tags with the topLevelTagGroup attribute appear in the same top-level tag group. (Delay and Duration are allowed to be in the same topLevelTagGroup).", "warning": false, diff --git a/tests/json_tests/TEMPORAL_TAG_ERROR.json b/tests/json_tests/TEMPORAL_TAG_ERROR.json index d36f38a..6d3ca69 100644 --- a/tests/json_tests/TEMPORAL_TAG_ERROR.json +++ b/tests/json_tests/TEMPORAL_TAG_ERROR.json @@ -1,8 +1,8 @@ [ { "error_code": "TEMPORAL_TAG_ERROR", - "alt_codes": [], - "name": "onset-offset-inset-error-not-tag-group", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-not-tag-group", "description": "An Onset or Offset tag does not appear in a tag group.", "warning": false, "schema": "8.2.0", @@ -100,8 +100,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "alt_codes": [], - "name": "onset-offset-inset-error-nested-group", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-nested-group", "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", "warning": false, "schema": "8.2.0", @@ -190,7 +190,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-wrong-number-of-defs", + "name": "temporal-tag-error-wrong-number-of-defs", "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", "warning": false, "schema": "8.2.0", @@ -284,7 +284,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-onset-has-more-groups", + "name": "temporal-tag-error-onset-has-more-groups", "description": "An Onset group has more than one additional tag group.", "warning": false, "schema": "8.2.0", @@ -382,7 +382,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-offset-has-groups", + "name": "temporal-tag-error-offset-has-groups", "description": "An Offset appears with one or more tags or additional tag groups.", "warning": false, "schema": "8.2.0", @@ -496,7 +496,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-mismatch", + "name": "temporal-tag-error-offset-with-no-onset", "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", "warning": false, "schema": "8.2.0", @@ -576,7 +576,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-extra tags", + "name": "temporal-tag-error-extra tags", "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", "warning": false, "schema": "8.2.0", @@ -667,7 +667,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-duplicated-onset-or-offset", + "name": "temporal-tag-error-duplicated-onset-or-offset", "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", "warning": false, "schema": "8.2.0", @@ -766,7 +766,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-inset-outside-its-event", + "name": "temporal-tag-error-inset-outside-its-event", "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", "warning": false, "schema": "8.2.0", @@ -849,7 +849,7 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-inset-group-has-extras", + "name": "temporal-tag-error-inset-group-has-extras", "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", "warning": false, "schema": "8.2.0", @@ -935,8 +935,8 @@ { "error_code": "TEMPORAL_TAG_ERROR", "alt_codes": [], - "name": "onset-offset-inset-error-duration-group", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "name": "temporal-tag-error-duration-group", + "description": "A Duration or Delay has extra tags or groups.", "warning": false, "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -1007,9 +1007,9 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "alt_codes": [], - "name": "onset-offset-inset-tag-appears-where-not-allowed", - "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-tag-appears-where-not-allowed", + "description": "A temporal tag appears appears in a tsv with no onset column", "warning": false, "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -1030,6 +1030,7 @@ "fails": [ [ ["duration", "HED"], + [0, "(Duration/5 s, (Red))"], [0, "Red, (Def/MyColor, Onset)"], [0, "(Def/MyColor, Yellow, Inset)"], [0, "Red, (Def/MyColor, Onset)"], @@ -1061,6 +1062,7 @@ "events": [ ["event_code", "HED"], + ["n/a", "(Duration/5.0, (Red))"], ["face", "Def/MyColor, Red, Blue"], ["ball", "Def/MyColor, Red, Blue"], ["snack", "Green"] @@ -1070,8 +1072,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Duration)", - "ball": "(Def/MyColor, Delay)" + "face": "(Duration/5.0, (Red))", + "ball": "(Delay/4.0, (Green))" } } }, diff --git a/tests/json_tests/TEMPORAL_TAG_ERROR_DELAY.json b/tests/json_tests/TEMPORAL_TAG_ERROR_DELAY.json index 35889a9..42466ec 100644 --- a/tests/json_tests/TEMPORAL_TAG_ERROR_DELAY.json +++ b/tests/json_tests/TEMPORAL_TAG_ERROR_DELAY.json @@ -1,20 +1,20 @@ [ { "error_code": "TEMPORAL_TAG_ERROR", - "alt_codes": [], - "name": "onset-offset-inset-error-not-tag-group-delay", - "description": "An Onset or Offset tag does not appear in a tag group.", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-not-tag-group-delay", + "description": "A Delay is not in the tag group.", "warning": false, "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], "tests": { "string_tests": { "fails": [ - "Onset, Red", - "Offset, Def/Acc/5.4 m-per-s^2" + "Delay, Red", + "Delay, Def/Acc/5.4 m-per-s^2" ], "passes": [ - "(Onset, Def/Acc/5.4 m-per-s^2)" + "(Delay/5 s, (Def/Acc/5.4 m-per-s^2))" ] }, "sidecar_tests": { @@ -22,8 +22,8 @@ { "event_code": { "HED": { - "face": "Onset, Red", - "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" + "face": "Blue, Red", + "ball": "Delay/5.0 s, Def/Acc/5.4 m-per-s^2" } } } @@ -100,7 +100,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-nested-group-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-nested-group-delay", "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -187,7 +188,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-wrong-number-of-defs-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-wrong-number-of-defs-delay", "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -279,7 +281,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-onset-has-more-groups-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-onset-has-more-groups-delay", "description": "An Onset group has more than one additional tag group.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -375,7 +378,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-offset-has-groups-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-offset-has-groups-delay", "description": "An Offset appears with one or more tags or additional tag groups.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -487,7 +491,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-mismatch-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-mismatch-delay", "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -565,7 +570,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-extra tags-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-extra tags-delay", "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -654,7 +660,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duplicated-onset-or-offset-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-duplicated-onset-or-offset-delay", "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -751,7 +758,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-outside-its-event-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-inset-outside-its-event-delay", "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -832,7 +840,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-group-has-extras-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-inset-group-has-extras-delay", "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], @@ -916,7 +925,8 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-tag-appears-where-not-allowed-delay", + "alt_codes": ["TAG_GROUP_ERROR"], + "name": "temporal-tag-error-tag-appears-where-not-allowed-delay", "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", "schema": "8.2.0", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"], diff --git a/tests/json_tests/TILDES_UNSUPPORTED.json b/tests/json_tests/TILDES_UNSUPPORTED.json index 82141a1..7e6e083 100644 --- a/tests/json_tests/TILDES_UNSUPPORTED.json +++ b/tests/json_tests/TILDES_UNSUPPORTED.json @@ -1,7 +1,7 @@ [ { "error_code": "TILDES_UNSUPPORTED", - "alt_codes": [], + "alt_codes": ["CHARACTER_INVALID"], "name": "tildes-unsupported", "description": "The tilde syntax is no longer supported for any version of HED.", "warning": false, diff --git a/tests/nonschema_tests.json b/tests/nonschema_tests.json index 109e634..5d25bd9 100644 --- a/tests/nonschema_tests.json +++ b/tests/nonschema_tests.json @@ -1,8 +1,14 @@ [ { "error_code": "CHARACTER_INVALID", - "name": "character-invalid-utf-8", + "alt_codes": [ + "TAG_INVALID", + "UNITS_INVALID", + "VALUE_INVALID" + ], + "name": "character-invalid-non-printing appears", "description": "The HED string contains a UTF-8 character.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11,7 +17,6 @@ "tests": { "string_tests": { "fails": [ - "Collection/[x]", "Item/Bl\b" ], "passes": [ @@ -132,8 +137,14 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "TAG_INVALID", + "UNITS_INVALID", + "VALUE_INVALID" + ], "name": "curly-braces-not-in-sidecar", "description": "The curly brace notation is used outside a sidecar.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -150,7 +161,18 @@ }, "sidecar_tests": { "fails": [], - "passes": [] + "passes": [ + { + "event_code": { + "HED": { + "face": "Statistical-accuracy/0.677, {response}" + } + }, + "response": { + "HED": "Label/#" + } + } + ] }, "event_tests": { "fails": [ @@ -190,8 +212,13 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "TAG_INVALID", + "VALUE_INVALID" + ], "name": "invalid-character-name-value-class", "description": "An invalid character was used in an 8.3.0 or greater style text value class.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -201,10 +228,14 @@ "string_tests": { "fails": [ "Parameter-label/[", - "Parameter-label/Taco*" + "Parameter-label/Taco*", + "Label/30$", + "Label/30db kg" ], "passes": [ - "Parameter-label/Words" + "Parameter-label/Words", + "Label/30e10", + "Label/3e10asdf" ] }, "sidecar_tests": { @@ -226,8 +257,58 @@ ] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Statistical-accuracy/1max1" + ] + ], + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Label/30$" + ] + ], + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Label/30db kg" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Label/3e10asdf" + ] + ] + ] }, "combo_tests": { "fails": [], @@ -237,8 +318,14 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "TAG_INVALID", + "UNITS_INVALID", + "VALUE_INVALID" + ], "name": "invalid-character-name-value-class-deprecated", "description": "An invalid character was used in an 8.2.0 or lower style text value class.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -285,8 +372,12 @@ }, { "error_code": "CHARACTER_INVALID", + "alt_codes": [ + "UNITS_INVALID" + ], "name": "invalid-character-numeric-class", "description": "An invalid character was used in an 8.3.0 or greater style numeric value class.", + "warning": false, "schema": "8.3.0", "definitions": [], "tests": { @@ -342,55 +433,12 @@ } } }, - { - "error_code": "CHARACTER_INVALID", - "name": "invalid-character-name-class", - "description": "An invalid character was used in an 8.3.0 or greater style numeric value class.", - "schema": "8.3.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [ - "Label/30$", - "Label/30db kg" - ], - "passes": [ - "Label/30e10", - "Label/3e10asdf" - ] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "show": "Label/3.0a" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": "Label/#" - } - } - ] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [], - "passes": [] - } - } - }, { "error_code": "COMMA_MISSING", + "alt_codes": [], "name": "comma-missing-tag-groups", "description": "Two tag groups are not separated by commas: (A, B)(C, D).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -545,8 +593,10 @@ }, { "error_code": "COMMA_MISSING", + "alt_codes": [], "name": "comma-missing-tag-and-group", "description": "A tag and a tag group are not separated by commas: A(B,D).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -696,8 +746,12 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], "name": "definition-invalid-tag-group", "description": "A Definition tag does not appear in a tag group at the top level in an annotation.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -790,8 +844,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-missing-inner-group", "description": "A definition's enclosing tag group is missing the inner tag group (i.e., the definition's contents).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -879,8 +935,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-multiple-definition-tags", "description": "A definition's enclosing tag group contains more than a `Definition` tag and an inner group.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -973,8 +1031,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-inner-group-defs", "description": "A definition's inner tag group contains `Definition`, `Def` or `Def-expand` tags.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1069,8 +1129,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-bad-number-of-placeholders", "description": "A definition that includes a placeholder (`#`) does not have exactly two `#` characters.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1161,8 +1223,12 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [ + "TAG_INVALID" + ], "name": "definition-invalid-placeholder-incorrect-of-positions", "description": "A definition has placeholders (`#`) in incorrect positions.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1253,8 +1319,12 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [ + "TAG_INVALID" + ], "name": "definition-invalid-placeholder-conflict", "description": "Definitions of the same name appear with and without a `#`.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1345,8 +1415,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-invalid-multiple-definitions", "description": "Multiple `Definition` tags with same name are encountered.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1445,12 +1517,13 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-has-unique-or-required-tag", "description": "A tag with a required or unique attribute appears in a definition.", + "warning": false, "schema": "8.3.0", "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Event-context, Item, (Label/Pie))" + "(Definition/Acc/#, (Acceleration/#, Red))" ], "tests": { "string_tests": { @@ -1537,8 +1610,10 @@ }, { "error_code": "DEFINITION_INVALID", + "alt_codes": [], "name": "definition-not-allowed-here", "description": "A definition appears in an unexpected place such as an events file or sidecar.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1659,8 +1734,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-name-not-definition", "description": "A `Def-expand` tag's name does not correspond to a definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1811,8 +1888,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-missing-placeholder", "description": "A `Def-expand` is missing an expected placeholder value or has an unexpected placeholder value.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -1987,8 +2066,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-bad-placeholder-units", "description": "A `Def-expand` has a placeholder value of incorrect format or units for definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2156,8 +2237,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-invalid-tags-not-in-definition", "description": "The tags within a Def-expand do not match the corresponding definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2319,8 +2402,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-missing-inner-group", "description": "A Def-expand is missing its inner group containing the definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2468,8 +2553,10 @@ }, { "error_code": "DEF_EXPAND_INVALID", + "alt_codes": [], "name": "def-expand-has-extras", "description": "A Def-expand has extra tags or groups.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2618,8 +2705,10 @@ }, { "error_code": "DEF_INVALID", + "alt_codes": [], "name": "def-invalid-name", "description": "A `Def` tag's name does not correspond to a definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2761,8 +2850,10 @@ }, { "error_code": "DEF_INVALID", + "alt_codes": [], "name": "def-invalid-missing-placeholder", "description": "A `Def` tag is missing an expected placeholder value or has an unexpected placeholder value.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -2911,8 +3002,10 @@ }, { "error_code": "DEF_INVALID", + "alt_codes": [], "name": "def-invalid-bad-placeholder-units", "description": "A `Def` has a placeholder value of incorrect format or units for definition.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3083,6 +3176,7 @@ }, { "error_code": "ELEMENT_DEPRECATED", + "alt_codes": [], "name": "tag-deprecated", "description": "A tag is deprecated", "warning": true, @@ -3230,8 +3324,10 @@ }, { "error_code": "PARENTHESES_MISMATCH", + "alt_codes": [], "name": "parentheses-mismatch-unmatched-parentheses", "description": "A HED string does not have the same number of open and closed parentheses.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3380,8 +3476,10 @@ }, { "error_code": "PARENTHESES_MISMATCH", + "alt_codes": [], "name": "parentheses-mismatch-incorrect-nesting", "description": "The open and closed parentheses are not correctly nested in the HED string.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3530,8 +3628,10 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [], "name": "placeholder-invalid-misplaced", "description": "A `#` appears in a place that it should not (such as in the `HED` column of an event file outside a definition).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3670,8 +3770,10 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [], "name": "placeholder-invalid-#-in-categorical-column", "description": "A JSON sidecar has a placeholder (`#`) in the HED dictionary for a categorical column.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3778,8 +3880,10 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [], "name": "placeholder-invalid-json-value-column", "description": "A JSON sidecar does not have exactly one placeholder (`#`) in each HED string representing a value column.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3889,8 +3993,12 @@ }, { "error_code": "PLACEHOLDER_INVALID", + "alt_codes": [ + "TAG_EXTENSION_INVALID" + ], "name": "placeholder-invalid-json-#-misplaced", "description": "A placeholder (`#`) is used in JSON sidecar or definition, but its parent in the schema does not have a placeholder child.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -3994,8 +4102,10 @@ }, { "error_code": "REQUIRED_TAG_MISSING", + "alt_codes": [], "name": "required-tag-missing", "description": "An event-level annotation does not have a tag corresponding to a node with the `required` schema attribute. (Note this is deprecated so no tests.)", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4022,8 +4132,10 @@ }, { "error_code": "REQUIRED_TAG_MISSING", + "alt_codes": [], "name": "required-tag-in-definition", "description": "A required tag appears in a definition", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4050,8 +4162,12 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [ + "CHARACTER_INVALID" + ], "name": "sidecar-braces-contents-invalid", "description": "The item in curly braces is not the word HED or a column name with HED annotations in the sidecar.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4176,9 +4292,15 @@ } }, { - "error_code": "VALUE_INVALID", + "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [ + "VALUE_INVALID", + "CHARACTER_INVALID", + "UNITS_INVALID" + ], "name": "sidecar-braces-invalid-spot", "description": "A curly brace reference must only appear where a tag could.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4231,8 +4353,10 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [], "name": "sidecar-braces-circular-reference", "description": "The item in curly braces has a HED annotation that contains curly braces.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4370,8 +4494,10 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", + "alt_codes": [], "name": "sidecar-braces-self-reference", "description": "The item in curly braces has a HED annotation that contains itself.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4543,8 +4669,14 @@ }, { "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-self-reference", - "description": "The item in curly braces has a HED annotation that contains itself.", + "alt_codes": [ + "CHARACTER_INVALID", + "VALUE_INVALID", + "UNITS_INVALID" + ], + "name": "sidecar-braces-appear-as-value-rather-than-tag", + "description": "The curly braces are in a value rather than as a separate tag substitute.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -4560,41 +4692,38 @@ { "event_code": { "HED": { - "face": "(Red, Blue), (Green, (Yellow)), {HED}", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2)" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "Label/{response_time}, Black" } }, "response_time": { - "HED": "Label/#, {response_time}" + "Description": "Has description but no HED", + "HED": "Orange" } - } - ], - "passes": [ + }, { "event_code": { "HED": { "face": "(Red, Blue), (Green, (Yellow))", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" + "ball": "Label/{response_time}, Black" } }, "response_time": { - "Description": "Has description with HED", + "Description": "Has description but no HED", "HED": "Label/#" - }, - "response_count": { - "Description": "A count used to test curly braces in value columns.", - "HED": "(Item-count/#, {response_time})" } - }, + } + ], + "passes": [ { "event_code": { "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2, {response_action})" + "face": "(Red, Blue), ({response_time}, (Green, (Yellow)))", + "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" } }, - "response_action": { - "Description": "Does not correspond to curly braces", + "response_time": { + "Description": "Has description with HED", "HED": "Label/#" } } @@ -4611,47 +4740,42 @@ "event_code": { "HED": { "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{HED}, (Def/Acc/3.5 m-per-s^2)" + "ball": "Label/{response_time}, (Def/Acc/3.5 m-per-s^2)" } }, "response_time": { "Description": "Has description with HED", - "HED": "Label/#, {response_time}" + "HED": "Orange" } }, "events": [ [ "onset", "duration", - "response_time", "event_code", "HED" ], [ 4.5, 0, - 3.4, "face", "Blue" ], [ 5.0, 0, - 6.8, "ball", "Green, Def/MyColor" ], [ 5.2, 0, - "n/a", "face", "" ], [ 5.5, 0, - "any", "face", "n/a" ] @@ -4676,37 +4800,37 @@ [ "onset", "duration", - "response_time", "event_code", - "HED" + "HED", + "response_time" ], [ 4.5, 0, - 3.4, "face", - "Blue" + "Blue", + 1 ], [ 5.0, 0, - 6.8, "ball", - "Green, Def/MyColor" + "Green, Def/MyColor", + 1 ], [ 5.2, 0, - "n/a", "face", - "" + "", + 1 ], [ 5.5, 0, - "any", "face", - "n/a" + "n/a", + 1 ] ] } @@ -4715,10 +4839,12 @@ } }, { - "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-appear-as-value-rather-than-tag", - "description": "The curly braces are in a value rather than as a separate tag substitute.", - "schema": "8.2.0", + "error_code": "SIDECAR_INVALID", + "alt_codes": [], + "name": "sidecar-invalid-key-at-wrong-level", + "description": "The HED key is not a second-level dictionary key.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -4732,26 +4858,18 @@ "fails": [ { "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "Label/{response_time}, Black" + "temp": { + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" + } } - }, - "response_time": { - "Description": "Has description but no HED", - "HED": "Orange" } }, { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "Label/{response_time}, Black" - } - }, - "response_time": { - "Description": "Has description but no HED", - "HED": "Label/#" + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } } ], @@ -4759,13 +4877,9 @@ { "event_code": { "HED": { - "face": "(Red, Blue), ({response_time}, (Green, (Yellow)))", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" } } ] @@ -4779,14 +4893,12 @@ { "sidecar": { "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "Label/{response_time}, (Def/Acc/3.5 m-per-s^2)" + "temp": { + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" + } } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Orange" } }, "events": [ @@ -4800,637 +4912,37 @@ 4.5, 0, "face", - "Blue" + "Red, Def/MyColor" ], [ 5.0, 0, "ball", - "Green, Def/MyColor" - ], - [ - 5.2, - 0, - "face", - "" - ], - [ - 5.5, - 0, - "face", - "n/a" + "Green" ] ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED", - "response_time" - ], - [ - 4.5, - 0, - "face", - "Blue", - 1 - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor", - 1 - ], - [ - 5.2, - 0, - "face", - "", - 1 - ], - [ - 5.5, - 0, - "face", - "n/a", - 1 - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-ref-not-hed-column", - "description": "Curly braces reference a column that exists, but isn't marked as hed data.", - "schema": "8.2.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{onset}" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "ball", - "Blue" - ] - ] - } - ], - "passes": [] - } - } - }, - { - "error_code": "SIDECAR_BRACES_INVALID", - "name": "sidecar-braces-ref-ignore-column", - "description": "Curly braces reference a column that exists, but is marked ignore.", - "schema": "8.2.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{onset}" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "ball", - "Blue" - ] - ] - } - ], - "passes": [] - } - } - }, - { - "error_code": "CHARACTER_INVALID", - "name": "sidecar-braces-in-events-file", - "description": "The curly braces appear in HED column of events file.", - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [ - "{HED}, Def/MyColor" - ], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "{who_knows}, Red" - ] - ] - ], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue, {response_time}" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ], - [ - 5.2, - 0, - "face", - "" - ], - [ - 5.5, - 0, - "face", - "n/a" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow)), ({HED})", - "ball": "{response_time}, (Def/Acc/3.5 m-per-s^2)" - } - }, - "response_time": { - "Description": "Has description with HED", - "HED": "Label/#" - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED", - "response_time" - ], - [ - 4.5, - 0, - "face", - "Blue", - 1 - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor", - 1 - ], - [ - 5.2, - 0, - "face", - "", - 1 - ], - [ - 5.5, - 0, - "face", - "n/a", - 1 - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_INVALID", - "name": "sidecar-invalid-key-at-wrong-level", - "description": "The HED key is not a second-level dictionary key.", - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "temp": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - } - }, - { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" - } - } - } - ] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "temp": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "ball", - "Green" - ] - ] - }, - { - "sidecar": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - }, - "events": [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "Green" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_INVALID", - "name": "sidecar-invalid-na-annotated", - "description": "An annotation entry is provided for `n/a`.", - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue),(Green, (Yellow))", - "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" - } - } - } - ] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Red, Blue),(Green, (Yellow))", - "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Red, Def/MyColor" - ], - [ - 5.0, - 0, - "n/a", - "Green" - ] - ] - } - ], - "passes": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "Blue" - ], - [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" - ] - ] - } - ] - } - } - }, - { - "error_code": "SIDECAR_KEY_MISSING", - "name": "sidecar-key-missing", - "description": "A value in a categorical column does not have an expected entry in a sidecar.", - "warning": true, - "schema": "8.3.0", - "definitions": [ - "(Definition/Acc/#, (Acceleration/#, Red))", - "(Definition/MyColor, (Label/Pie))" - ], - "tests": { - "string_tests": { - "fails": [], - "passes": [] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [ + }, { "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" - } + "HED": { + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } }, "events": [ [ "onset", "duration", - "event_code", "HED" ], [ 4.5, 0, - "face", "Red, Def/MyColor" ], [ 5.0, 0, - "square", "Green" ] ] @@ -5442,7 +4954,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } }, @@ -5472,10 +4984,11 @@ } }, { - "error_code": "STYLE_WARNING", - "name": "style-warning-bad-naming-style", - "description": "An extension or label does not follow HED naming conventions.", - "warning": true, + "error_code": "SIDECAR_INVALID", + "alt_codes": [], + "name": "sidecar-invalid-na-annotated", + "description": "An annotation entry is provided for `n/a`.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -5483,20 +4996,16 @@ ], "tests": { "string_tests": { - "fails": [ - "Red-color/red" - ], - "passes": [ - "Blue-color/Blue" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [ { "event_code": { "HED": { - "face": "Red/red_blech", - "ball": "Blue-color/blue" + "face": "(Red, Blue),(Green, (Yellow))", + "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } } } @@ -5505,52 +5014,16 @@ { "event_code": { "HED": { - "face": "Red-color/Red", - "ball": "Blue-color/Blue" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" } } } ] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red/red_blech" - ], - [ - 5.0, - 0, - "Blue-color/blue" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red-color/Red" - ], - [ - 5.0, - 0, - "Blue-color/Blue" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ @@ -5558,8 +5031,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red/red_blech", - "ball": "Blue-color/blue" + "face": "(Red, Blue),(Green, (Yellow))", + "n/a": "(Def/MyColor, Onset), (Def/Acc/3.5 m-per-s^2)" } } }, @@ -5579,7 +5052,7 @@ [ 5.0, 0, - "ball", + "n/a", "Green" ] ] @@ -5590,8 +5063,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red-color/Red", - "ball": "Blue-color/Blue" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -5621,9 +5094,11 @@ } }, { - "error_code": "TAG_EMPTY", - "name": "tag-empty-extra-commas-or-parentheses", - "description": "A HED string has extra commas or parentheses separated by only white space.", + "error_code": "SIDECAR_INVALID", + "alt_codes": [], + "name": "curly-braces-has-no-hed", + "description": "A column name appears in curly braces, but that column name does not have a HED annotation.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -5631,27 +5106,19 @@ ], "tests": { "string_tests": { - "fails": [ - "Red, , , Green", - "(, Red, Green), Blue", - "(Red, , Green), Blue", - "(Red, Green,), Blue", - "(Red, Green), Blue," - ], - "passes": [ - "(Red, Blue), Green" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [ { "event_code": { "HED": { - "square": "Red, , , Green", - "test": "(, Red, Green), Blue", - "pine": "(Red, , Green), Blue", - "apple": "(Red, Green,), Blue" + "face": "Statistical-accuracy/0.677, {response}" } + }, + "response": { + "HED": "Label/#" } } ], @@ -5659,57 +5126,18 @@ { "event_code": { "HED": { - "face": "Red, Blue", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" + "face": "Statistical-accuracy/0.677, {response}" } + }, + "response": { + "HED": "Label/#" } } ] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 5.5, - 0, - "Red, , , Green" - ], - [ - 7.5, - 0, - "(, Red, Green), Blue" - ], - [ - 8.2, - 0, - "(Red, , Green), Blue" - ], - [ - 9.1, - 0, - "(Red, Green,), Blue" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red, (Blue, Green)" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ @@ -5717,30 +5145,31 @@ "sidecar": { "event_code": { "HED": { - "square": "Red, , , Green", - "test": "(, Red, Green), Blue", - "pine": "(Red, , Green), Blue", - "apple": "(Red, Green,), Blue" + "face": "Statistical-accuracy/0.677, {response}" } - } + }, + "response": "Label/#" }, "events": [ [ "onset", "duration", "event_code", + "response", "HED" ], [ 4.5, 0, - "test", + "face", + "yes", "Red, Def/MyColor" ], [ 5.0, 0, - "apple", + "ball", + "no", "Green" ] ] @@ -5751,8 +5180,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red, Green", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -5761,19 +5190,22 @@ "onset", "duration", "event_code", + "response", "HED" ], [ 4.5, 0, "face", - "Blue" + "yes", + "Red, Def/MyColor" ], [ 5.0, 0, "ball", - "Green, Def/MyColor" + "no", + "Green" ] ] } @@ -5782,9 +5214,11 @@ } }, { - "error_code": "TAG_EMPTY", - "name": "tag-empty-begin-end-comma", - "description": "A HED string begins or ends with a comma (ignoring white space).", + "error_code": "SIDECAR_KEY_MISSING", + "alt_codes": [], + "name": "sidecar-key-missing", + "description": "A value in a categorical column does not have an expected entry in a sidecar.", + "warning": true, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -5792,77 +5226,16 @@ ], "tests": { "string_tests": { - "fails": [ - ", Blue,Def/Acc/3.2 m-per-s^2", - "(Blue, Green),Yellow,", - ",,(Blue, Green),Yellow," - ], - "passes": [ - "(Red, Blue), Green" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": ", Blue,Def/Acc/3.2 m-per-s^2", - "ball": "(Blue, Green),Yellow,", - "square": ",,(Blue, Green),Yellow," - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "Red, Blue", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - ", (Blue, Green),Yellow," - ], - [ - 5.5, - 0, - ",,(Blue, Green),Yellow," - ], - [ - 6.5, - 0, - ", Blue,Def/Acc/3.2 m-per-s^2" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Red, (Blue, Green)" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ @@ -5870,9 +5243,8 @@ "sidecar": { "event_code": { "HED": { - "face": ", Blue,Def/Acc/3.2", - "ball": "(Blue, Green),Yellow,", - "square": ",,(Blue, Green),Yellow," + "face": "Acceleration/banana", + "ball": "Black, Blue" } } }, @@ -5892,7 +5264,7 @@ [ 5.0, 0, - "ball", + "square", "Green" ] ] @@ -5904,7 +5276,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7 m-per-s^2, Blue" } } }, @@ -5934,9 +5306,11 @@ } }, { - "error_code": "TAG_EMPTY", - "name": "tag-empty-empty-parentheses", - "description": "A tag group is empty (i.e., empty parentheses are not allowed).", + "error_code": "STYLE_WARNING", + "alt_codes": [], + "name": "style-warning-bad-naming-style", + "description": "An extension or label does not follow HED naming conventions.", + "warning": true, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -5945,12 +5319,10 @@ "tests": { "string_tests": { "fails": [ - "(Red, (), (Blue), ((Green)))", - "((( ))), Red" + "Red-color/red" ], "passes": [ - "(Red, ( Blue ), ((Green)))", - "(((Def/Acc/3.5 m-per-s^2)))" + "Blue-color/Blue" ] }, "sidecar_tests": { @@ -5958,8 +5330,8 @@ { "event_code": { "HED": { - "face": "(Red, (), (Blue), ((Green)))", - "ball": "((( ))), Red" + "face": "Red/red_blech", + "ball": "Blue-color/blue" } } } @@ -5968,8 +5340,8 @@ { "event_code": { "HED": { - "face": "(Red, ( Blue ), ((Green)))", - "ball": "(((Def/Acc/3.5 m-per-s^2)))" + "face": "Red-color/Red", + "ball": "Blue-color/Blue" } } } @@ -5986,12 +5358,12 @@ [ 4.5, 0, - "(Red, (), (Blue), ((Green)))" + "Red/red_blech" ], [ - 5.5, + 5.0, 0, - "((( ))), Red" + "Blue-color/blue" ] ] ], @@ -6005,12 +5377,12 @@ [ 4.5, 0, - "(Red, ( Blue ), ((Green)))" + "Red-color/Red" ], [ - 5.5, + 5.0, 0, - "(((Def/Acc/3.5 m-per-s^2)))" + "Blue-color/Blue" ] ] ] @@ -6021,8 +5393,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Red, (), (Blue), ((Green)))", - "ball": "((( ))), Red" + "face": "Red/red_blech", + "ball": "Blue-color/blue" } } }, @@ -6053,8 +5425,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Red, ( Blue ), ((Green)))", - "ball": "(((Def/Acc/3.5 m-per-s^2)))" + "face": "Red-color/Red", + "ball": "Blue-color/Blue" } } }, @@ -6084,9 +5456,11 @@ } }, { - "error_code": "TAG_EXPRESSION_REPEATED", - "name": "tag-expression-repeated-same-level", - "description": "A tag is repeated in the same tag group or level.", + "error_code": "TAG_EMPTY", + "alt_codes": [], + "name": "tag-empty-extra-commas-or-parentheses", + "description": "A HED string has extra commas or parentheses separated by only white space.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -6095,13 +5469,14 @@ "tests": { "string_tests": { "fails": [ - "Red, (Blue), Red, Green", - "(Red, Blue, (Green)), (Red, Blue, (Green))", - "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "Red, , , Green", + "(, Red, Green), Blue", + "(Red, , Green), Blue", + "(Red, Green,), Blue", + "(Red, Green), Blue," ], "passes": [ - "Red, (Blue, Red)", - "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "(Red, Blue), Green" ] }, "sidecar_tests": { @@ -6109,9 +5484,10 @@ { "event_code": { "HED": { - "face": "Red, (Blue), Red, Green", - "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", - "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "square": "Red, , , Green", + "test": "(, Red, Green), Blue", + "pine": "(Red, , Green), Blue", + "apple": "(Red, Green,), Blue" } } } @@ -6120,8 +5496,8 @@ { "event_code": { "HED": { - "face": "Red, (Blue, Red)", - "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "face": "Red, Blue", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -6136,19 +5512,24 @@ "HED" ], [ - 4.5, + 5.5, 0, - "Red, (Blue), Red, Green" + "Red, , , Green" ], [ - 5.5, + 7.5, 0, - "(Red, Blue, (Green)), (Red, Blue, (Green))" + "(, Red, Green), Blue" ], [ - 6.5, + 8.2, 0, - "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "(Red, , Green), Blue" + ], + [ + 9.1, + 0, + "(Red, Green,), Blue" ] ] ], @@ -6162,12 +5543,7 @@ [ 4.5, 0, - "Red, (Blue, Red)" - ], - [ - 5.5, - 0, - "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "Red, (Blue, Green)" ] ] ] @@ -6178,9 +5554,10 @@ "sidecar": { "event_code": { "HED": { - "face": "Red, (Blue), Red, Green", - "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", - "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" + "square": "Red, , , Green", + "test": "(, Red, Green), Blue", + "pine": "(Red, , Green), Blue", + "apple": "(Red, Green,), Blue" } } }, @@ -6194,13 +5571,13 @@ [ 4.5, 0, - "face", + "test", "Red, Def/MyColor" ], [ 5.0, 0, - "ball", + "apple", "Green" ] ] @@ -6211,8 +5588,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red, (Blue, Red)", - "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" + "face": "Red, Green", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" } } }, @@ -6242,10 +5619,11 @@ } }, { - "error_code": "TAG_EXTENDED", - "name": "tag-extended-extension", - "description": "A tag represents an extension from the schema.", - "warning": true, + "error_code": "TAG_EMPTY", + "alt_codes": [], + "name": "tag-empty-begin-end-comma", + "description": "A HED string begins or ends with a comma (ignoring white space).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -6254,16 +5632,12 @@ "tests": { "string_tests": { "fails": [ - "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", - "Sensory-presentation/Visual-presentation/Nice-yellow", - "Red-color/Red/Redish", - "Red-color/Red/Redish/More-redish", - "((Green/Greenish))", - "Red/1red", - "Red/Red--2red" + ", Blue,Def/Acc/3.2 m-per-s^2", + "(Blue, Green),Yellow,", + ",,(Blue, Green),Yellow," ], "passes": [ - "Red-color/Red" + "(Red, Blue), Green" ] }, "sidecar_tests": { @@ -6271,11 +5645,9 @@ { "event_code": { "HED": { - "face": "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", - "ball": "Sensory-presentation/Visual-presentation/Nice-yellow", - "square": "((Green/Greenish))", - "triangle": "Red/1red", - "catwalk": "Red/Red--2red" + "face": ", Blue,Def/Acc/3.2 m-per-s^2", + "ball": "(Blue, Green),Yellow,", + "square": ",,(Blue, Green),Yellow," } } } @@ -6284,7 +5656,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red" + "face": "Red, Blue", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -6301,12 +5674,17 @@ [ 4.5, 0, - "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))" + ", (Blue, Green),Yellow," ], [ 5.5, 0, - "Sensory-presentation/Visual-presentation/Nice-yellow" + ",,(Blue, Green),Yellow," + ], + [ + 6.5, + 0, + ", Blue,Def/Acc/3.2 m-per-s^2" ] ] ], @@ -6320,7 +5698,7 @@ [ 4.5, 0, - "Red-color/Red" + "Red, (Blue, Green)" ] ] ] @@ -6331,8 +5709,9 @@ "sidecar": { "event_code": { "HED": { - "face": "(Red-color/Red/Big-red/Bigger-red, Blue/Nice-blue),(Green, (Yellow))", - "ball": "Sensory-presentation/Visual-presentation/Nice-yellow" + "face": ", Blue,Def/Acc/3.2", + "ball": "(Blue, Green),Yellow,", + "square": ",,(Blue, Green),Yellow," } } }, @@ -6364,7 +5743,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } }, @@ -6394,9 +5773,11 @@ } }, { - "error_code": "TAG_EXTENSION_INVALID", - "name": "tag-extension-invalid-duplicate", - "description": "A tag extension term is already in the schema.", + "error_code": "TAG_EMPTY", + "alt_codes": [], + "name": "tag-empty-empty-parentheses", + "description": "A tag group is empty (i.e., empty parentheses are not allowed).", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -6405,12 +5786,12 @@ "tests": { "string_tests": { "fails": [ - "Red-color/Red/DarkRed, Sensory-presentation/Red", - "Sensory-presentation/Red/Redish" + "(Red, (), (Blue), ((Green)))", + "((( ))), Red" ], "passes": [ - "Red-color/Red/Redish", - "((Green/Greenish))" + "(Red, ( Blue ), ((Green)))", + "(((Def/Acc/3.5 m-per-s^2)))" ] }, "sidecar_tests": { @@ -6418,8 +5799,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", - "ball": "Sensory-presentation/Red/Redish" + "face": "(Red, (), (Blue), ((Green)))", + "ball": "((( ))), Red" } } } @@ -6428,8 +5809,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red/Redish", - "ball": "((Green/Greenish))" + "face": "(Red, ( Blue ), ((Green)))", + "ball": "(((Def/Acc/3.5 m-per-s^2)))" } } } @@ -6446,12 +5827,12 @@ [ 4.5, 0, - "Red-color/Red/DarkRed, Sensory-presentation/Red" + "(Red, (), (Blue), ((Green)))" ], [ 5.5, 0, - "Sensory-presentation/Red/Redish" + "((( ))), Red" ] ] ], @@ -6465,12 +5846,12 @@ [ 4.5, 0, - "Red-color/Red" + "(Red, ( Blue ), ((Green)))" ], [ 5.5, 0, - "((Green))" + "(((Def/Acc/3.5 m-per-s^2)))" ] ] ] @@ -6481,8 +5862,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", - "ball": "Sensory-presentation/Red/Redish" + "face": "(Red, (), (Blue), ((Green)))", + "ball": "((( ))), Red" } } }, @@ -6513,8 +5894,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red-color/Red", - "ball": "Blue" + "face": "(Red, ( Blue ), ((Green)))", + "ball": "(((Def/Acc/3.5 m-per-s^2)))" } } }, @@ -6544,9 +5925,11 @@ } }, { - "error_code": "TAG_EXTENSION_INVALID", - "name": "tag-extension-invalid-bad-node-name", - "description": "A tag extension term does not comply with rules for schema nodes.", + "error_code": "TAG_EXPRESSION_REPEATED", + "alt_codes": [], + "name": "tag-expression-repeated-same-level", + "description": "A tag is repeated in the same tag group or level.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -6555,13 +5938,13 @@ "tests": { "string_tests": { "fails": [ - "Red/Red$2", - "Red/R#d" + "Red, (Blue), Red, Green", + "(Red, Blue, (Green)), (Red, Blue, (Green))", + "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" ], "passes": [ - "Red-color/Red", - "((Green))", - "Red" + "Red, (Blue, Red)", + "(Red, Blue, (Green)), (Red, Blue, ((Green)))" ] }, "sidecar_tests": { @@ -6569,8 +5952,9 @@ { "event_code": { "HED": { - "face": "Red/Red$2", - "ball": "Red/R#d" + "face": "Red, (Blue), Red, Green", + "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", + "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" } } } @@ -6579,11 +5963,8 @@ { "event_code": { "HED": { - "face": "Red-color/Red/Redish", - "ball": "Red-color/Red/Redish/More-redish", - "square": "((Green/Greenish))", - "triangle": "Red/1red", - "catwalk": "Red/Red--2red" + "face": "Red, (Blue, Red)", + "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" } } } @@ -6600,12 +5981,17 @@ [ 4.5, 0, - "Red/Red$2" + "Red, (Blue), Red, Green" ], [ 5.5, 0, - "Red/R#d" + "(Red, Blue, (Green)), (Red, Blue, (Green))" + ], + [ + 6.5, + 0, + "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" ] ] ], @@ -6619,27 +6005,12 @@ [ 4.5, 0, - "Red-color/Red/Redish" - ], - [ - 5.5, - 0, - "Red-color/Red/Redish/More-redish" - ], - [ - 6.5, - 0, - "((Green/Greenish))" - ], - [ - 7.5, - 0, - "Red/1red" + "Red, (Blue, Red)" ], [ - 8.2, + 5.5, 0, - "Red/Red--2red" + "(Red, Blue, (Green)), (Red, Blue, ((Green)))" ] ] ] @@ -6650,8 +6021,9 @@ "sidecar": { "event_code": { "HED": { - "face": "Red/Red$2", - "ball": "Red/R#d" + "face": "Red, (Blue), Red, Green", + "ball": "(Red, Blue, (Green)), (Red, Blue, (Green))", + "square": "(Red, (Blue, Green, (Yellow)), Red, (Blue, Green, (Yellow)))" } } }, @@ -6682,8 +6054,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Red/Redish-like", - "ball": "Blue" + "face": "Red, (Blue, Red)", + "ball": "(Red, Blue, (Green)), (Red, Blue, ((Green)))" } } }, @@ -6713,10 +6085,12 @@ } }, { - "error_code": "TAG_GROUP_ERROR", - "name": "tag-group-error-missing", - "description": "A tag has tagGroup or topLevelTagGroup attribute, but is not enclosed in parentheses.", - "schema": "8.2.0", + "error_code": "TAG_EXTENDED", + "alt_codes": [], + "name": "tag-extended-extension", + "description": "A tag represents an extension from the schema.", + "warning": true, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -6724,17 +6098,16 @@ "tests": { "string_tests": { "fails": [ - "Definition, (Red)", - "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", - "Onset", - "Duration/3.0 s", - "Delay/3.0 s" + "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", + "Sensory-presentation/Visual-presentation/Nice-yellow", + "Red-color/Red/Redish", + "Red-color/Red/Redish/More-redish", + "((Green/Greenish))", + "Red/1red", + "Red/Red--2red" ], "passes": [ - "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", - "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)", - "(Duration/3.0 s, (Event))", - "(Duration/3.0 s, Delay/2.0 s, (Event))" + "Red-color/Red" ] }, "sidecar_tests": { @@ -6742,8 +6115,11 @@ { "event_code": { "HED": { - "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", - "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" + "face": "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))", + "ball": "Sensory-presentation/Visual-presentation/Nice-yellow", + "square": "((Green/Greenish))", + "triangle": "Red/1red", + "catwalk": "Red/Red--2red" } } } @@ -6752,8 +6128,7 @@ { "event_code": { "HED": { - "face": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", - "ball": "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" + "face": "Red-color/Red" } } } @@ -6770,12 +6145,12 @@ [ 4.5, 0, - "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)" + "(Red-color/Red/Big-red, Blue/Nice-blue),(Green, (Yellow))" ], [ 5.5, 0, - "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" + "Sensory-presentation/Visual-presentation/Nice-yellow" ] ] ], @@ -6789,12 +6164,7 @@ [ 4.5, 0, - "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))" - ], - [ - 5.5, - 0, - "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" + "Red-color/Red" ] ] ] @@ -6805,8 +6175,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", - "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" + "face": "(Red-color/Red/Big-red/Bigger-red, Blue/Nice-blue),(Green, (Yellow))", + "ball": "Sensory-presentation/Visual-presentation/Nice-yellow" } } }, @@ -6838,7 +6208,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7 m-per-s^2, Blue" } } }, @@ -6868,26 +6238,88 @@ } }, { - "error_code": "TAG_GROUP_ERROR", - "name": "tag-group-error-not-top-level", - "description": "A tag with the topLevelTagGroup does not appear at a HED tag group at the top level in an assembled HED annotation.", - "schema": "8.2.0", + "error_code": "TAG_EXTENSION_INVALID", + "alt_codes": [], + "name": "tag-extension-invalid-duplicate", + "description": "A tag extension term is already in the schema.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "Red-color/Red/DarkRed, Sensory-presentation/Red", + "Sensory-presentation/Red/Redish" + ], + "passes": [ + "Red-color/Red/Redish", + "((Green/Greenish))" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", + "ball": "Sensory-presentation/Red/Redish" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "Red-color/Red/Redish", + "ball": "((Green/Greenish))" + } + } + } + ] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Red-color/Red/DarkRed, Sensory-presentation/Red" + ], + [ + 5.5, + 0, + "Sensory-presentation/Red/Redish" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "Red-color/Red" + ], + [ + 5.5, + 0, + "((Green))" + ] + ] + ] }, "combo_tests": { "fails": [ @@ -6895,8 +6327,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "((Def/Acc/3.0 m-per-s^2, Onset))" + "face": "Red-color/Red/DarkRed, Sensory-presentation/Red", + "ball": "Sensory-presentation/Red/Redish" } } }, @@ -6927,8 +6359,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" + "face": "Red-color/Red", + "ball": "Blue" } } }, @@ -6958,10 +6390,12 @@ } }, { - "error_code": "TAG_GROUP_ERROR", - "name": "multiple-top-level-tags-in-same-group", - "description": "Multiple tags with the topLevelTagGroup attribute appear in the same top-level tag group. (Delay and Duration are allowed to be in the same topLevelTagGroup).", - "schema": "8.2.0", + "error_code": "TAG_EXTENSION_INVALID", + "alt_codes": [], + "name": "tag-extension-invalid-bad-node-name", + "description": "A tag extension term does not comply with rules for schema nodes.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -6969,14 +6403,13 @@ "tests": { "string_tests": { "fails": [ - "(Def/MyColor, Onset, Event-context)", - "(Event-context, Red, Offset)", - "(Event-context, Duration/3.0 s, Offset)", - "(Delay/3.0 s, Duration/2.0 s, Offset)" + "Red/Red$2", + "Red/R#d" ], "passes": [ - "(Def/MyColor, Onset)", - "((Event), Duration/3.0 s, Delay/2.0 s)" + "Red-color/Red", + "((Green))", + "Red" ] }, "sidecar_tests": { @@ -6984,20 +6417,9 @@ { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" - } - } - }, - { - "event_code": { - "HED": { - "face": "Acceleration/5.0", - "ball": "Onset" + "face": "Red/Red$2", + "ball": "Red/R#d" } - }, - "val_col": { - "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ], @@ -7005,12 +6427,12 @@ { "event_code": { "HED": { - "face": "(Acceleration/5.0)", - "ball": "Delay/5.0 s, (Acceleration/5.0)" + "face": "Red-color/Red/Redish", + "ball": "Red-color/Red/Redish/More-redish", + "square": "((Green/Greenish))", + "triangle": "Red/1red", + "catwalk": "Red/Red--2red" } - }, - "val_col": { - "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ] @@ -7026,12 +6448,12 @@ [ 4.5, 0, - "Red, (Event-context, Def/MyColor, Onset)" + "Red/Red$2" ], [ - 5.0, + 5.5, 0, - "Green" + "Red/R#d" ] ] ], @@ -7045,12 +6467,27 @@ [ 4.5, 0, - "Red, (Event-context, Def/MyColor)" + "Red-color/Red/Redish" ], [ - 5.0, + 5.5, 0, - "Green" + "Red-color/Red/Redish/More-redish" + ], + [ + 6.5, + 0, + "((Green/Greenish))" + ], + [ + 7.5, + 0, + "Red/1red" + ], + [ + 8.2, + 0, + "Red/Red--2red" ] ] ] @@ -7061,8 +6498,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" + "face": "Red/Red$2", + "ball": "Red/R#d" } } }, @@ -7077,7 +6514,7 @@ 4.5, 0, "face", - "Red, (Def/MyColor, Event-context, Event-context)" + "Red, Def/MyColor" ], [ 5.0, @@ -7093,8 +6530,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" + "face": "Red/Redish-like", + "ball": "Blue" } } }, @@ -7109,7 +6546,7 @@ 4.5, 0, "face", - "Blue, (Event-context, Label/Red)" + "Blue" ], [ 5.0, @@ -7124,10 +6561,14 @@ } }, { - "error_code": "TAG_INVALID", - "name": "tag-invalid-in-schema", - "description": "The tag is not valid in the schema it is associated with.", - "schema": "8.3.0", + "error_code": "TAG_GROUP_ERROR", + "alt_codes": [ + "TEMPORAL_TAG_ERROR" + ], + "name": "tag-group-error-missing", + "description": "A tag has tagGroup or topLevelTagGroup attribute, but is not enclosed in parentheses.", + "warning": false, + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -7135,12 +6576,17 @@ "tests": { "string_tests": { "fails": [ - "Label #", - "ReallyInvalid/Extension", - "ReallyInvalid" + "Definition/Blech, (Red)", + "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", + "Onset", + "Duration/3.0 s", + "Delay/3.0 s" ], "passes": [ - "Brown-color/Brown" + "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", + "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)", + "(Duration/3.0 s, (Event))", + "(Duration/3.0 s, Delay/2.0 s, (Event))" ] }, "sidecar_tests": { @@ -7148,9 +6594,8 @@ { "event_code": { "HED": { - "face": "Label #", - "ball": "ReallyInvalid/Extension", - "square": "ReallyInvalid" + "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", + "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" } } } @@ -7159,7 +6604,8 @@ { "event_code": { "HED": { - "face": "Brown-color/Brown" + "face": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))", + "ball": "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" } } } @@ -7176,17 +6622,12 @@ [ 4.5, 0, - "Label #" - ], - [ - 5.5, - 0, - "Property/Sensory-event" + "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)" ], [ 5.5, 0, - "Sensory-event/Baloney" + "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" ] ] ], @@ -7200,7 +6641,12 @@ [ 4.5, 0, - "Brown-color/Brown" + "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red))" + ], + [ + 5.5, + 0, + "((Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset)" ] ] ] @@ -7211,9 +6657,8 @@ "sidecar": { "event_code": { "HED": { - "face": "ReallyInvalid", - "ball": "Property/Sensory-event", - "square": "Sensory-event/Baloney" + "face": "Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)", + "ball": "(Def-expand/Acc/4.5 m-per-s^2, (Acceleration/4.5 m-per-s^2, Red)), Onset" } } }, @@ -7245,7 +6690,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue/Apples" + "ball": "Def/Acc/7, Blue" } } }, @@ -7275,49 +6720,26 @@ } }, { - "error_code": "TAG_INVALID", - "name": "tag-has-extra-white space", - "description": "A HED tag has extra internal whitespace, including directly before or after slashes.", - "schema": "8.3.0", + "error_code": "TAG_GROUP_ERROR", + "alt_codes": [ + "TEMPORAL_TAG_ERROR" + ], + "name": "tag-group-error-not-top-level", + "description": "A tag with the topLevelTagGroup does not appear at a HED tag group at the top level in an assembled HED annotation.", + "warning": false, + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [ - "Sensory- event,Green", - "Sensory -event,Blue", - "Event /Sensory-event, Black", - "Event/ Sensory-event,White" - ], - "passes": [ - "Sensory-event, Green" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "square": "Sensory- event,Green", - "test": "Sensory -event,Blue", - "pine": "Event /Sensory-event, Black", - "apple": "Event/ Sensory-event,White" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "Sensory-event, Green", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ @@ -7325,27 +6747,20 @@ [ "onset", "duration", + "event_code", "HED" ], [ - 5.5, - 0, - "Sensory- event,Green" - ], - [ - 7.5, - 0, - "Sensory -event,Blue" - ], - [ - 8.2, + 4.5, 0, - "Event /Sensory-event, Black" + "face", + "Red, Def/MyColor, ((Duration/5 s, (Red)))" ], [ - 9.1, + 5.0, 0, - "Event/ Sensory-event,White" + "ball", + "Green" ] ] ], @@ -7354,12 +6769,20 @@ [ "onset", "duration", + "event_code", "HED" ], [ 4.5, 0, - "Sensory-event, Green" + "face", + "Red, Def/MyColor, (Duration/5 s, (Red))" + ], + [ + 5.0, + 0, + "ball", + "Green" ] ] ] @@ -7370,10 +6793,8 @@ "sidecar": { "event_code": { "HED": { - "square": "Sensory- event,Green", - "test": "Sensory -event,Blue", - "pine": "Event /Sensory-event, Black", - "apple": "Event/ Sensory-event,White" + "face": "Acceleration/banana", + "ball": "((Def/Acc/3.0 m-per-s^2, Onset))" } } }, @@ -7387,13 +6808,13 @@ [ 4.5, 0, - "test", + "face", "Red, Def/MyColor" ], [ 5.0, 0, - "apple", + "ball", "Green" ] ] @@ -7404,8 +6825,8 @@ "sidecar": { "event_code": { "HED": { - "face": " Red, Green", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" + "face": "Acceleration/5 m-per-s^2", + "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" } } }, @@ -7435,10 +6856,14 @@ } }, { - "error_code": "TAG_INVALID", - "name": "tag-has-leading-trailing-or-consecutive-slashes", - "description": "A HED tag has leading, trailing or consecutive slashes.", - "schema": "8.3.0", + "error_code": "TAG_GROUP_ERROR", + "alt_codes": [ + "TEMPORAL_TAG_ERROR" + ], + "name": "multiple-top-level-tags-in-same-group", + "description": "Multiple tags with the topLevelTagGroup attribute appear in the same top-level tag group. (Delay and Duration are allowed to be in the same topLevelTagGroup).", + "warning": false, + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -7446,18 +6871,14 @@ "tests": { "string_tests": { "fails": [ - "/Event", - "Red/", - "Event//Sensory-event", - "//Event", - "Body-part/Head-part//Brain", - "Def/Acc/4.5//", - "Def/Acc/4.5/", - "/ /Def/Acc/4.5 ms/" + "(Def/MyColor, Onset, Event-context)", + "(Event-context, Red, Offset)", + "(Event-context, Duration/3.0 s, Offset)", + "(Delay/3.0 s, Duration/2.0 s, Offset)" ], "passes": [ - "Body-part/Head-part/Brain", - "Label/Red, Informational-property/Label/Blue" + "(Def/MyColor, Onset)", + "((Event), Duration/3.0 s, Delay/2.0 s)" ] }, "sidecar_tests": { @@ -7465,11 +6886,20 @@ { "event_code": { "HED": { - "face": "Event//Sensory-event", - "ball": "/Event", - "square": "Red/", - "test": "/ /Def/Acc/4.5 ms/" + "face": "Acceleration/banana", + "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" + } + } + }, + { + "event_code": { + "HED": { + "face": "Acceleration/5.0", + "ball": "Onset" } + }, + "val_col": { + "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ], @@ -7477,9 +6907,12 @@ { "event_code": { "HED": { - "face": "Body-part/Head-part/Brain", - "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" + "face": "(Acceleration/5.0)", + "ball": "Delay/5.0 s, (Acceleration/5.0)" } + }, + "val_col": { + "HED": "Time-interval/# s, (Duration/5.0 s, {event_code})" } } ] @@ -7495,22 +6928,12 @@ [ 4.5, 0, - "/Event," - ], - [ - 5.5, - 0, - "Body-part/Head-part//Brain" - ], - [ - 6.5, - 0, - "Event/Sensory-event/" + "Red, (Event-context, Def/MyColor, Onset)" ], [ - 7.2, + 5.0, 0, - "/ /Def/Acc/4.5 ms/" + "Green" ] ] ], @@ -7524,7 +6947,12 @@ [ 4.5, 0, - "Event/Sensory-event" + "Red, (Event-context, Def/MyColor)" + ], + [ + 5.0, + 0, + "Green" ] ] ] @@ -7535,10 +6963,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Event//Sensory-event", - "ball": "//Event", - "square": "Body-part/Head-part//Brain", - "test": "/ /Def/Acc/4.5 ms/" + "face": "Acceleration/banana", + "ball": "(Def/Acc/3.0 m-per-s^2, Onset, Event-context)" } } }, @@ -7553,19 +6979,13 @@ 4.5, 0, "face", - "Red/, Def/MyColor" + "Red, (Def/MyColor, Event-context, Event-context)" ], [ 5.0, 0, "ball", "Green" - ], - [ - 7.2, - 0, - "n/a", - "/ /Def/Acc/4.5 ms/" ] ] } @@ -7576,7 +6996,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "(Def/Acc/3.0 m-per-s^2, Onset)" } } }, @@ -7591,13 +7011,13 @@ 4.5, 0, "face", - "Blue" + "Blue, (Event-context, Label/Red)" ], [ 5.0, 0, "ball", - "Event/Sensory-event" + "Green, Def/MyColor" ] ] } @@ -7606,9 +7026,11 @@ } }, { - "error_code": "TAG_NOT_UNIQUE", - "name": "tag-not-unique", - "description": "A tag with unique attribute appears more than once in an event-level HED string.", + "error_code": "TAG_INVALID", + "alt_codes": [], + "name": "tag-invalid-in-schema", + "description": "The tag is not valid in the schema it is associated with.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -7617,10 +7039,12 @@ "tests": { "string_tests": { "fails": [ - "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "Label #", + "ReallyInvalid/Extension", + "ReallyInvalid" ], "passes": [ - "(Event-context, (Red, Blue))" + "Brown-color/Brown" ] }, "sidecar_tests": { @@ -7628,7 +7052,9 @@ { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "face": "Label #", + "ball": "ReallyInvalid/Extension", + "square": "ReallyInvalid" } } } @@ -7637,7 +7063,7 @@ { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue))" + "face": "Brown-color/Brown" } } } @@ -7654,7 +7080,17 @@ [ 4.5, 0, - "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "Label #" + ], + [ + 5.5, + 0, + "Property/Sensory-event" + ], + [ + 5.5, + 0, + "Sensory-event/Baloney" ] ] ], @@ -7668,7 +7104,7 @@ [ 4.5, 0, - "(Event-context, (Red, Blue))" + "Brown-color/Brown" ] ] ] @@ -7679,7 +7115,9 @@ "sidecar": { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" + "face": "ReallyInvalid", + "ball": "Property/Sensory-event", + "square": "Sensory-event/Baloney" } } }, @@ -7710,8 +7148,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Event-context, (Red, Blue))", - "ball": "Def/Acc/7, Blue" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue/Apples" } } }, @@ -7732,19 +7170,21 @@ 5.0, 0, "ball", - "(Event-context, (Red, Blue))" + "Green, Def/MyColor" ] ] } ] } - } - }, - { - "error_code": "TAG_REQUIRES_CHILD", - "name": "tag-requires-child-no-child", - "description": "A tag has the requireChild schema attribute but does not have a child.", - "schema": "8.2.0", + } + }, + { + "error_code": "TAG_INVALID", + "alt_codes": [], + "name": "tag-has-extra-white space", + "description": "A HED tag has extra internal whitespace, including directly before or after slashes.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -7752,12 +7192,13 @@ "tests": { "string_tests": { "fails": [ - "(Blue, Description)", - "Label, Red" + "Sensory- event,Green", + "Sensory -event,Blue", + "Event /Sensory-event, Black", + "Event/ Sensory-event,White" ], "passes": [ - "(Blue, Description/Yes this is a description., (Red))", - "Label/Redish, Red" + "Sensory-event, Green" ] }, "sidecar_tests": { @@ -7765,8 +7206,10 @@ { "event_code": { "HED": { - "face": "(Blue, Description)", - "ball": "Label, Red" + "square": "Sensory- event,Green", + "test": "Sensory -event,Blue", + "pine": "Event /Sensory-event, Black", + "apple": "Event/ Sensory-event,White" } } } @@ -7775,8 +7218,8 @@ { "event_code": { "HED": { - "face": "(Blue, Description/Yes this is a description., (Red))", - "ball": "Label/Redish, Red" + "face": "Sensory-event, Green", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -7791,14 +7234,24 @@ "HED" ], [ - 4.5, + 5.5, 0, - "(Blue, Description)" + "Sensory- event,Green" ], [ - 5.0, + 7.5, 0, - "Label, Red" + "Sensory -event,Blue" + ], + [ + 8.2, + 0, + "Event /Sensory-event, Black" + ], + [ + 9.1, + 0, + "Event/ Sensory-event,White" ] ] ], @@ -7812,12 +7265,7 @@ [ 4.5, 0, - "(Blue, Description/Yes this is a description., (Red))" - ], - [ - 5.0, - 0, - "Label/Redish, Red" + "Sensory-event, Green" ] ] ] @@ -7828,8 +7276,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Blue, Description)", - "ball": "Label, Red" + "square": "Sensory- event,Green", + "test": "Sensory -event,Blue", + "pine": "Event /Sensory-event, Black", + "apple": "Event/ Sensory-event,White" } } }, @@ -7843,13 +7293,13 @@ [ 4.5, 0, - "face", + "test", "Red, Def/MyColor" ], [ 5.0, 0, - "ball", + "apple", "Green" ] ] @@ -7860,8 +7310,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "face": " Red, Green", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2" } } }, @@ -7876,7 +7326,7 @@ 4.5, 0, "face", - "Label/Blue" + "Blue" ], [ 5.0, @@ -7891,10 +7341,12 @@ } }, { - "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-not-tag-group", - "description": "An Onset or Offset tag does not appear in a tag group.", - "schema": "8.2.0", + "error_code": "TAG_INVALID", + "alt_codes": [], + "name": "tag-has-leading-trailing-or-consecutive-slashes", + "description": "A HED tag has leading, trailing or consecutive slashes.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -7902,11 +7354,18 @@ "tests": { "string_tests": { "fails": [ - "Onset, Red", - "Offset, Def/Acc/5.4 m-per-s^2" + "/Event", + "Red/", + "Event//Sensory-event", + "//Event", + "Body-part/Head-part//Brain", + "Def/Acc/4.5//", + "Def/Acc/4.5/", + "/ /Def/Acc/4.5 ms/" ], "passes": [ - "(Onset, Def/Acc/5.4 m-per-s^2)" + "Body-part/Head-part/Brain", + "Label/Red, Informational-property/Label/Blue" ] }, "sidecar_tests": { @@ -7914,8 +7373,10 @@ { "event_code": { "HED": { - "face": "Onset, Red", - "ball": "Offset, Def/Acc/5.4 m-per-s^2" + "face": "Event//Sensory-event", + "ball": "/Event", + "square": "Red/", + "test": "/ /Def/Acc/4.5 ms/" } } } @@ -7924,7 +7385,8 @@ { "event_code": { "HED": { - "face": "(Onset, Def/Acc/5.4 m-per-s^2)" + "face": "Body-part/Head-part/Brain", + "ball": "Def/Acc/4.5 m-per-s^2, Def/Acc/3.2 m-per-s^2" } } } @@ -7941,17 +7403,22 @@ [ 4.5, 0, - "Onset, Red" + "/Event," ], [ - 4.8, + 5.5, 0, - "(Onset, MyColor)" + "Body-part/Head-part//Brain" ], [ - 5.0, + 6.5, 0, - "Offset, MyColor" + "Event/Sensory-event/" + ], + [ + 7.2, + 0, + "/ /Def/Acc/4.5 ms/" ] ] ], @@ -7965,17 +7432,7 @@ [ 4.5, 0, - "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" - ], - [ - 5.5, - 0, - "(Onset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 6.3, - 0, - "(Offset, Def/Acc/5.4 m-per-s^2)" + "Event/Sensory-event" ] ] ] @@ -7986,8 +7443,10 @@ "sidecar": { "event_code": { "HED": { - "face": "Onset, Red", - "ball": "Offset, Def/Acc/5.4 m-per-s^2" + "face": "Event//Sensory-event", + "ball": "//Event", + "square": "Body-part/Head-part//Brain", + "test": "/ /Def/Acc/4.5 ms/" } } }, @@ -8001,20 +7460,20 @@ [ 4.5, 0, - "ball", - "Onset, Red" + "face", + "Red/, Def/MyColor" ], [ - 4.8, + 5.0, 0, - "n/a", - "(Onset/MyColor)" + "ball", + "Green" ], [ - 5.0, + 7.2, 0, - "face", - "Offset, MyColor" + "n/a", + "/ /Def/Acc/4.5 ms/" ] ] } @@ -8024,7 +7483,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/Acc/5.4 m-per-s^2)" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -8036,28 +7496,16 @@ "HED" ], [ - 5.5, - 0, - "n/a", - "(Onset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 6.3, - 0, - "n/a", - "(Offset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 8.5, + 4.5, 0, "face", "Blue" ], [ - 9.0, + 5.0, 0, - "n/a", - "Green, ((Def-expand/MyColor, (Label/Pie)), Onset)" + "ball", + "Event/Sensory-event" ] ] } @@ -8066,10 +7514,12 @@ } }, { - "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-nested-group", - "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", - "schema": "8.2.0", + "error_code": "TAG_NOT_UNIQUE", + "alt_codes": [], + "name": "tag-not-unique", + "description": "A tag with unique attribute appears more than once in an event-level HED string.", + "warning": false, + "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" @@ -8077,10 +7527,10 @@ "tests": { "string_tests": { "fails": [ - "((Onset, Def/MyColor), Red)" + "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" ], "passes": [ - "(Onset, Def/MyColor), Red" + "(Event-context, (Red, Blue))" ] }, "sidecar_tests": { @@ -8088,7 +7538,7 @@ { "event_code": { "HED": { - "face": "((Onset, Def/MyColor), Red)" + "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" } } } @@ -8097,7 +7547,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor), Red" + "face": "(Event-context, (Red, Blue))" } } } @@ -8114,7 +7564,7 @@ [ 4.5, 0, - "((Onset, Def/MyColor), Red)" + "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" ] ] ], @@ -8128,7 +7578,7 @@ [ 4.5, 0, - "(Onset, Def/MyColor), Red" + "(Event-context, (Red, Blue))" ] ] ] @@ -8139,7 +7589,7 @@ "sidecar": { "event_code": { "HED": { - "face": "((Onset, Def/MyColor), Red)" + "face": "(Event-context, (Red, Blue)), (Event-context, (Green, Yellow))" } } }, @@ -8153,13 +7603,13 @@ [ 4.5, 0, - "n/a", - "((Onset, Def/MyColor), Red)" + "face", + "Red, Def/MyColor" ], [ 5.0, 0, - "face", + "ball", "Green" ] ] @@ -8170,7 +7620,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor), Red" + "face": "(Event-context, (Red, Blue))", + "ball": "Def/Acc/7, Blue" } } }, @@ -8190,8 +7641,8 @@ [ 5.0, 0, - "n/a", - "(Onset, Def/MyColor), Red" + "ball", + "(Event-context, (Red, Blue))" ] ] } @@ -8200,9 +7651,11 @@ } }, { - "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-wrong-number-of-defs", - "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", + "error_code": "TAG_REQUIRES_CHILD", + "alt_codes": [], + "name": "tag-requires-child-no-child", + "description": "A tag has the requireChild schema attribute but does not have a child.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8211,11 +7664,12 @@ "tests": { "string_tests": { "fails": [ - "(Onset, (Red))" + "(Blue, Description)", + "Label, Red" ], "passes": [ - "(Onset, Def/MyColor, (Red))", - "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + "(Blue, Description/Yes this is a description., (Red))", + "Label/Redish, Red" ] }, "sidecar_tests": { @@ -8223,8 +7677,8 @@ { "event_code": { "HED": { - "face": "(Onset, (Red))", - "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "(Blue, Description)", + "ball": "Label, Red" } } } @@ -8233,7 +7687,8 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor, (Red))" + "face": "(Blue, Description/Yes this is a description., (Red))", + "ball": "Label/Redish, Red" } } } @@ -8250,12 +7705,12 @@ [ 4.5, 0, - "(Onset, (Red))" + "(Blue, Description)" ], [ - 5.5, + 5.0, 0, - "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "Label, Red" ] ] ], @@ -8269,7 +7724,12 @@ [ 4.5, 0, - "(Onset, Def/MyColor, (Red))" + "(Blue, Description/Yes this is a description., (Red))" + ], + [ + 5.0, + 0, + "Label/Redish, Red" ] ] ] @@ -8280,8 +7740,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, (Red))", - "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "(Blue, Description)", + "ball": "Label, Red" } } }, @@ -8296,19 +7756,13 @@ 4.5, 0, "face", - "Green, Def/MyColor" + "Red, Def/MyColor" ], [ 5.0, 0, - "n/a", - "(Onset, (Yellow))" - ], - [ - 6.0, - 0, "ball", - "n/a" + "Green" ] ] } @@ -8318,7 +7772,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor, (Red))" + "face": "Acceleration/5 m-per-s^2", + "ball": "Def/Acc/7, Blue" } } }, @@ -8333,13 +7788,13 @@ 4.5, 0, "face", - "Blue" + "Label/Blue" ], [ 5.0, - 0, - "n/a", - "(Onset, Def/MyColor, (Blue))" + 0, + "ball", + "Green, Def/MyColor" ] ] } @@ -8349,8 +7804,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-onset-has-more-groups", - "description": "An Onset group has more than one additional tag group.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-not-tag-group", + "description": "An Onset or Offset tag does not appear in a tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8359,12 +7818,11 @@ "tests": { "string_tests": { "fails": [ - "(Onset, Def/MyColor, (Red), (Blue))", - "((Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" + "Onset, Red", + "Offset, Def/Acc/5.4 m-per-s^2" ], "passes": [ - "(Onset, Def/MyColor)", - "((Def-expand/MyColor, (Label/Pie)), (Red), Onset)" + "(Onset, Def/Acc/5.4 m-per-s^2)" ] }, "sidecar_tests": { @@ -8372,8 +7830,8 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor, (Red), (Blue))", - "ball": "((Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" + "face": "Onset, Red", + "ball": "Offset, Def/Acc/5.4 m-per-s^2" } } } @@ -8382,8 +7840,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Onset, Def/Acc/5.4 m-per-s^2)" } } } @@ -8400,12 +7857,17 @@ [ 4.5, 0, - "(Onset, Def/MyColor, (Red), (Blue))" + "Onset, Red" ], [ - 5.5, + 4.8, 0, - "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" + "(Onset, MyColor)" + ], + [ + 5.0, + 0, + "Offset, MyColor" ] ] ], @@ -8419,12 +7881,17 @@ [ 4.5, 0, - "(Onset, Def/MyColor)" + "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" ], [ - 5.0, + 5.5, 0, - "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "(Onset, Def/Acc/5.4 m-per-s^2)" + ], + [ + 6.3, + 0, + "(Offset, Def/Acc/5.4 m-per-s^2)" ] ] ] @@ -8435,8 +7902,8 @@ "sidecar": { "event_code": { "HED": { - "face": "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", - "ball": "(Onset, Def/MyColor, (Red), (Blue))" + "face": "Onset, Red", + "ball": "Offset, Def/Acc/5.4 m-per-s^2" } } }, @@ -8450,20 +7917,20 @@ [ 4.5, 0, - "face", - "Red, Def/MyColor" + "ball", + "Onset, Red" ], [ - 5.0, + 4.8, 0, - "ball", - "Green" + "n/a", + "(Onset/MyColor)" ], [ - 6.0, + 5.0, 0, - "n/a", - "(Def/MyColor, (Red), (Blue), Onset)" + "face", + "Offset, MyColor" ] ] } @@ -8473,8 +7940,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Onset, Def/Acc/5.4 m-per-s^2)" } } }, @@ -8486,16 +7952,28 @@ "HED" ], [ - 4.5, + 5.5, 0, "n/a", - "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "(Onset, Def/Acc/5.4 m-per-s^2)" ], [ - 5.0, + 6.3, 0, - "ball", - "Green, Def/MyColor" + "n/a", + "(Offset, Def/Acc/5.4 m-per-s^2)" + ], + [ + 8.5, + 0, + "face", + "Blue" + ], + [ + 9.0, + 0, + "n/a", + "Green, ((Def-expand/MyColor, (Label/Pie)), Onset)" ] ] } @@ -8505,8 +7983,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-offset-has-groups", - "description": "An Offset appears with one or more tags or additional tag groups.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-nested-group", + "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8515,11 +7997,10 @@ "tests": { "string_tests": { "fails": [ - "(Offset, Def/MyColor, Red)", - "((Def-expand/MyColor, (Label/Pie)), Offset, (Red))" + "((Onset, Def/MyColor), Red)" ], "passes": [ - "(Offset, Def/MyColor)" + "(Onset, Def/MyColor), Red" ] }, "sidecar_tests": { @@ -8527,10 +8008,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor, (Red))", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "((Onset, Def/MyColor), Red)" } } } @@ -8539,10 +8017,7 @@ { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor)", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Onset, Def/MyColor), Red" } } } @@ -8559,22 +8034,7 @@ [ 4.5, 0, - "(Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Offset, Def/MyColor, (Red))" - ], - [ - 4.9, - 0, - "(Onset, Def/MyColor, (Red))" - ], - [ - 5.5, - 0, - "((Def-expand/MyColor, (Label/Pie)), (Green), Offset)" + "((Onset, Def/MyColor), Red)" ] ] ], @@ -8588,22 +8048,7 @@ [ 4.5, 0, - "(Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Offset, Def/MyColor)" - ], - [ - 4.9, - 0, - "(Onset, Def/MyColor, (Red))" - ], - [ - 5.5, - 0, - "((Def-expand/MyColor, (Label/Pie)), Offset)" + "(Onset, Def/MyColor), Red" ] ] ] @@ -8614,10 +8059,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor, (Red))", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "((Onset, Def/MyColor), Red)" } } }, @@ -8631,26 +8073,14 @@ [ 4.5, 0, - "face", - "n/a" - ], - [ - 4.8, - 0, - "square", - "n/a" + "n/a", + "((Onset, Def/MyColor), Red)" ], [ - 4.9, + 5.0, 0, - "ball", + "face", "Green" - ], - [ - 5.5, - 0, - "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" ] ] } @@ -8660,10 +8090,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Onset, Def/MyColor)", - "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Offset, Def/MyColor)", - "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Onset, Def/MyColor), Red" } } }, @@ -8678,25 +8105,13 @@ 4.5, 0, "face", - "n/a" - ], - [ - 4.8, - 0, - "square", - "n/a" - ], - [ - 4.9, - 0, - "ball", - "Green" + "Blue" ], [ - 5.5, + 5.0, 0, - "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" + "n/a", + "(Onset, Def/MyColor), Red" ] ] } @@ -8706,8 +8121,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-mismatch", - "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", + "alt_codes": [], + "name": "temporal-tag-error-wrong-number-of-defs", + "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8715,12 +8132,34 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Onset, (Red))" + ], + "passes": [ + "(Onset, Def/MyColor, (Red))", + "(Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Onset, (Red))", + "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Onset, Def/MyColor, (Red))" + } + } + } + ] }, "event_tests": { "fails": [ @@ -8733,17 +8172,12 @@ [ 4.5, 0, - "(Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red, (Def/MyColor, Offset)" + "(Onset, (Red))" ], [ 5.5, 0, - "(Def/MyColor, Offset)" + "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" ] ] ], @@ -8757,17 +8191,7 @@ [ 4.5, 0, - "(Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" + "(Onset, Def/MyColor, (Red))" ] ] ] @@ -8778,8 +8202,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)" + "face": "(Onset, (Red))", + "ball": "(Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" } } }, @@ -8793,20 +8217,20 @@ [ 4.5, 0, - "ball", - "Red, Blue" - ], - [ - 4.8, - 0, - "ball", - "Red, Blue" + "face", + "Green, Def/MyColor" ], [ 5.0, 0, - "face", - "Green" + "n/a", + "(Onset, (Yellow))" + ], + [ + 6.0, + 0, + "ball", + "n/a" ] ] } @@ -8816,8 +8240,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)" + "face": "(Onset, Def/MyColor, (Red))" } } }, @@ -8837,8 +8260,8 @@ [ 5.0, 0, - "ball", - "Green, Def/MyColor" + "n/a", + "(Onset, Def/MyColor, (Blue))" ] ] } @@ -8848,8 +8271,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-extra tags", - "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", + "alt_codes": [], + "name": "temporal-tag-error-onset-has-more-groups", + "description": "An Onset group has more than one additional tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8858,10 +8283,12 @@ "tests": { "string_tests": { "fails": [ - "(Def/MyColor, Blue, Green, Onset)" + "(Onset, Def/MyColor, (Red), (Blue))", + "((Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" ], "passes": [ - "(Def/MyColor, (Blue), Onset)" + "(Onset, Def/MyColor)", + "((Def-expand/MyColor, (Label/Pie)), (Red), Onset)" ] }, "sidecar_tests": { @@ -8869,7 +8296,8 @@ { "event_code": { "HED": { - "face": "(Def/MyColor, Blue, Green, Onset)" + "face": "(Onset, Def/MyColor, (Red), (Blue))", + "ball": "((Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" } } } @@ -8878,7 +8306,8 @@ { "event_code": { "HED": { - "face": "(Def/MyColor, (Blue), Onset)" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" } } } @@ -8895,7 +8324,12 @@ [ 4.5, 0, - "(Def/MyColor, Blue, (Green), Onset)" + "(Onset, Def/MyColor, (Red), (Blue))" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" ] ] ], @@ -8909,7 +8343,12 @@ [ 4.5, 0, - "(Def/MyColor, (Blue), Onset)" + "(Onset, Def/MyColor)" + ], + [ + 5.0, + 0, + "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ] ] ] @@ -8920,8 +8359,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Blue, Green, Onset)", - "ball": "Blue" + "face": "((Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", + "ball": "(Onset, Def/MyColor, (Red), (Blue))" } } }, @@ -8943,6 +8382,12 @@ 0, "ball", "Green" + ], + [ + 6.0, + 0, + "n/a", + "(Def/MyColor, (Red), (Blue), Onset)" ] ] } @@ -8952,8 +8397,8 @@ "sidecar": { "event_code": { "HED": { - "face": "((Blue, Green), Def/MyColor, Onset)", - "ball": "(Def/Acc/7, Onset)" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" } } }, @@ -8967,8 +8412,8 @@ [ 4.5, 0, - "face", - "Blue" + "n/a", + "((Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ], [ 5.0, @@ -8984,8 +8429,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duplicated-onset-or-offset", - "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", + "alt_codes": [], + "name": "temporal-tag-error-offset-has-groups", + "description": "An Offset appears with one or more tags or additional tag groups.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -8993,16 +8440,99 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Offset, Def/MyColor, Red)", + "((Def-expand/MyColor, (Label/Pie)), Offset, (Red))" + ], + "passes": [ + "(Offset, Def/MyColor)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor, (Red))", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor)", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" + } + } + } + ] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Offset, Def/MyColor, (Red))" + ], + [ + 4.9, + 0, + "(Onset, Def/MyColor, (Red))" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), (Green), Offset)" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Offset, Def/MyColor)" + ], + [ + 4.9, + 0, + "(Onset, Def/MyColor, (Red))" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), Offset)" + ] + ] + ] }, "combo_tests": { "fails": [ @@ -9010,8 +8540,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, (Green), Onset)", - "ball": "Blue" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor, (Red))", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)" } } }, @@ -9026,73 +8558,25 @@ 4.5, 0, "face", - "(Def/MyColor, (Blue), Onset)" - ], - [ - 5.0, - 0, - "ball", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Def/MyColor, (Green), Onset)", - "ball": "(Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" + "n/a" ], [ - 4.5, + 4.8, 0, - "face", - "(Def/MyColor, Offset)" + "square", + "n/a" ], [ - 5.0, + 4.9, 0, "ball", - "(Def/MyColor, Offset)" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Def/MyColor, (Green), Onset)", - "ball": "(Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "(Def/MyColor, Offset)" + "Green" ], [ - 5.0, + 5.5, 0, - "ball", - "(Def/MyColor, Offset)" + "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -9102,8 +8586,10 @@ "sidecar": { "event_code": { "HED": { - "face": "((Blue, Green), Def/MyColor, Onset)", - "ball": "(Def/MyColor, Onset)" + "face": "(Onset, Def/MyColor)", + "ball": "((Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Offset, Def/MyColor)", + "circle": "((Def-expand/MyColor, (Label/Pie)), Offset)" } } }, @@ -9118,13 +8604,25 @@ 4.5, 0, "face", - "Blue" + "n/a" ], [ - 5.0, + 4.8, + 0, + "square", + "n/a" + ], + [ + 4.9, 0, "ball", "Green" + ], + [ + 5.5, + 0, + "((Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -9134,8 +8632,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-outside-its-event", - "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", + "alt_codes": [], + "name": "temporal-tag-error-offset-with-no-onset", + "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9161,7 +8661,7 @@ [ 4.5, 0, - "(Inset, (Red))" + "(Def/MyColor, Offset)" ], [ 6.5, @@ -9207,8 +8707,7 @@ "event_code": { "HED": { "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "ball": "(Def/MyColor, Offset)" } } }, @@ -9222,13 +8721,13 @@ [ 4.5, 0, - "snack", + "ball", "Red, Blue" ], [ 4.8, 0, - "face", + "ball", "Red, Blue" ], [ @@ -9246,8 +8745,7 @@ "event_code": { "HED": { "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "ball": "(Def/MyColor, Offset)" } } }, @@ -9264,12 +8762,6 @@ "face", "Blue" ], - [ - 4.8, - 0, - "snack", - "Blue" - ], [ 5.0, 0, @@ -9284,8 +8776,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-group-has-extras", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "alt_codes": [], + "name": "temporal-tag-error-extra tags", + "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9293,12 +8787,32 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Def/MyColor, Blue, Green, Onset)" + ], + "passes": [ + "(Def/MyColor, (Blue), Onset)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Def/MyColor, Blue, Green, Onset)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Blue), Onset)" + } + } + } + ] }, "event_tests": { "fails": [ @@ -9308,25 +8822,10 @@ "duration", "HED" ], - [ - 2.5, - 0, - "Red, (Def/MyColor, Onset)" - ], [ 4.5, 0, - "(Def/MyColor, Blue, Inset)" - ], - [ - 6.5, - 0, - "Red, (Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Offset)" + "(Def/MyColor, Blue, (Green), Onset)" ] ] ], @@ -9341,21 +8840,6 @@ 4.5, 0, "(Def/MyColor, (Blue), Onset)" - ], - [ - 4.8, - 0, - "(Def/MyColor, (Green), Inset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" ] ] ] @@ -9366,9 +8850,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "face": "(Def/MyColor, Blue, Green, Onset)", + "ball": "Blue" } } }, @@ -9382,19 +8865,13 @@ [ 4.5, 0, - "snack", - "Red, Blue" - ], - [ - 4.8, - 0, "face", - "Red, Blue" + "Red, Def/MyColor" ], [ 5.0, 0, - "face", + "ball", "Green" ] ] @@ -9405,9 +8882,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "face": "((Blue, Green), Def/MyColor, Onset)", + "ball": "(Def/Acc/7, Onset)" } } }, @@ -9424,18 +8900,6 @@ "face", "Blue" ], - [ - 4.7, - 0, - "face", - "Blue" - ], - [ - 4.8, - 0, - "snack", - "Blue" - ], [ 5.0, 0, @@ -9450,8 +8914,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duration-group", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "alt_codes": [], + "name": "temporal-tag-error-duplicated-onset-or-offset", + "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9459,16 +8925,160 @@ ], "tests": { "string_tests": { + "fails": [], + "passes": [] + }, + "sidecar_tests": { + "fails": [], + "passes": [] + }, + "event_tests": { + "fails": [], + "passes": [] + }, + "combo_tests": { "fails": [ - "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))", - "(Duration/3.0 s, (Green), (Blue))", - "(Delay/3.0 s, (Green), (Blue))" + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Green), Onset)", + "ball": "Blue" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "(Def/MyColor, (Blue), Onset)" + ], + [ + 5.0, + 0, + "ball", + "Green" + ] + ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Green), Onset)", + "ball": "(Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "(Def/MyColor, Offset)" + ], + [ + 5.0, + 0, + "ball", + "(Def/MyColor, Offset)" + ] + ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, (Green), Onset)", + "ball": "(Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "(Def/MyColor, Offset)" + ], + [ + 5.0, + 0, + "ball", + "(Def/MyColor, Offset)" + ] + ] + } ], "passes": [ - "(Duration/3.0 s, Delay/2.0 s, (Blue))", - "(Duration/3.0 s, (Blue))", - "(Delay/3.0 s, (Blue))" + { + "sidecar": { + "event_code": { + "HED": { + "face": "((Blue, Green), Def/MyColor, Onset)", + "ball": "(Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, + 0, + "face", + "Blue" + ], + [ + 5.0, + 0, + "ball", + "Green" + ] + ] + } ] + } + } + }, + { + "error_code": "TEMPORAL_TAG_ERROR", + "alt_codes": [], + "name": "temporal-tag-error-inset-outside-its-event", + "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", + "warning": false, + "schema": "8.2.0", + "definitions": [ + "(Definition/Acc/#, (Acceleration/#, Red))", + "(Definition/MyColor, (Label/Pie))" + ], + "tests": { + "string_tests": { + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [], @@ -9483,19 +9093,19 @@ "HED" ], [ - 5.0, + 4.5, 0, - "(Duration/3.0 s, Delay/2.0 s)" + "(Inset, (Red))" ], [ - 5.5, + 6.5, 0, - "(Duration/3.0 s, Delay/2.0 s, Event)" + "Red, (Def/MyColor, Offset)" ], [ - 6.0, + 5.5, 0, - "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))" + "(Def/MyColor, Offset)" ] ] ], @@ -9509,31 +9119,30 @@ [ 4.5, 0, - "((Blue), Duration/3.0 s)" + "(Def/MyColor, Onset)" ], [ - 4.8, + 5.5, 0, - "((Green), Delay/2.0 s)" + "(Def/MyColor, Offset)" ], [ - 5.0, + 6.5, 0, - "((Green), Duration/3.0 s, Delay/2.0 s)" + "Red" ] ] ] }, "combo_tests": { - "fails": [], - "passes": [ + "fails": [ { "sidecar": { "event_code": { "HED": { - "face": "(Duration/3.0 s, (Event))", - "ball": "(Delay/3.0 s, (Event))", - "snack": "(Duration/3.0 s, Delay/2.0 s, (Event))" + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, @@ -9547,11 +9156,44 @@ [ 4.5, 0, + "snack", + "Red, Blue" + ], + [ + 4.8, + 0, "face", - "Blue" + "Red, Blue" ], [ - 4.7, + 5.0, + 0, + "face", + "Green" + ] + ] + } + ], + "passes": [ + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, 0, "face", "Blue" @@ -9576,8 +9218,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-tag-appears-where-not-allowed", - "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "alt_codes": [], + "name": "temporal-tag-error-inset-group-has-extras", + "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9596,22 +9240,27 @@ "fails": [ [ [ + "onset", "duration", "HED" ], [ + 2.5, 0, "Red, (Def/MyColor, Onset)" ], [ + 4.5, 0, - "(Def/MyColor, Yellow, Inset)" + "(Def/MyColor, Blue, Inset)" ], [ + 6.5, 0, "Red, (Def/MyColor, Onset)" ], [ + 5.5, 0, "(Def/MyColor, Offset)" ] @@ -9620,22 +9269,27 @@ "passes": [ [ [ + "onset", "duration", "HED" ], [ + 4.5, 0, - "(Def/MyColor, (Blue))" + "(Def/MyColor, (Blue), Onset)" ], [ + 4.8, 0, - "(Def/MyColor, (Green))" + "(Def/MyColor, (Green), Inset)" ], [ + 5.5, 0, - "(Def/MyColor)" + "(Def/MyColor, Offset)" ], [ + 6.5, 0, "Red" ] @@ -9656,44 +9310,28 @@ }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ - "face", - "Def/MyColor, Red, Blue" - ], - [ - "ball", - "Def/MyColor, Red, Blue" - ], - [ + 4.5, + 0, "snack", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Def/MyColor, Duration)", - "ball": "(Def/MyColor, Delay)" - } - } - }, - "events": [ - [ - "event_code", - "HED" + "Red, Blue" ], [ + 4.8, + 0, "face", - "Def/MyColor, Red, Blue" + "Red, Blue" ], [ - "ball", - "Def/MyColor, Red, Blue" + 5.0, + 0, + "face", + "Green" ] ] } @@ -9703,28 +9341,42 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor)", - "ball": "(Def/MyColor)", - "snack": "(Def/MyColor)" + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ + 4.5, + 0, "face", "Blue" ], [ + 4.7, + 0, "face", "Blue" ], [ + 4.8, + 0, "snack", "Blue" + ], + [ + 5.0, + 0, + "ball", + "Green, Def/MyColor" ] ] } @@ -9734,8 +9386,10 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-not-tag-group-delay", - "description": "An Onset or Offset tag does not appear in a tag group.", + "alt_codes": [], + "name": "temporal-tag-error-duration-group", + "description": "A Duration or Delay has extra tags or groups.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9744,33 +9398,19 @@ "tests": { "string_tests": { "fails": [ - "Onset, Red", - "Offset, Def/Acc/5.4 m-per-s^2" + "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))", + "(Duration/3.0 s, (Green), (Blue))", + "(Delay/3.0 s, (Green), (Blue))" ], "passes": [ - "(Onset, Def/Acc/5.4 m-per-s^2)" + "(Duration/3.0 s, Delay/2.0 s, (Blue))", + "(Duration/3.0 s, (Blue))", + "(Delay/3.0 s, (Blue))" ] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Onset, Red", - "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ @@ -9781,19 +9421,19 @@ "HED" ], [ - 4.5, + 5.0, 0, - "Delay/1.0 s, Onset, Red" + "(Duration/3.0 s, Delay/2.0 s)" ], [ - 4.8, + 5.5, 0, - "(Onset, MyColor)" + "(Duration/3.0 s, Delay/2.0 s, Event)" ], [ - 5.0, + 6.0, 0, - "Delay/1.0 s, Offset, MyColor" + "(Duration/3.0 s, Delay/2.0 s, (Green), (Blue))" ] ] ], @@ -9801,72 +9441,37 @@ [ [ "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" - ], - [ - 6.3, - 0, - "(Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2)" - ] - ] - ] - }, - "combo_tests": { - "fails": [ - { - "sidecar": { - "event_code": { - "HED": { - "face": "Onset, Red", - "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "ball", - "Onset, Red" - ], - [ - 4.8, - 0, - "n/a", - "(Onset/MyColor)" - ], - [ - 5.0, - 0, - "face", - "Offset, MyColor" - ] + "duration", + "HED" + ], + [ + 4.5, + 0, + "((Blue), Duration/3.0 s)" + ], + [ + 4.8, + 0, + "((Green), Delay/2.0 s)" + ], + [ + 5.0, + 0, + "((Green), Duration/3.0 s, Delay/2.0 s)" ] - } - ], + ] + ] + }, + "combo_tests": { + "fails": [], "passes": [ { "sidecar": { "event_code": { "HED": { - "face": "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + "face": "(Duration/3.0 s, (Event))", + "ball": "(Delay/3.0 s, (Event))", + "snack": "(Duration/3.0 s, Delay/2.0 s, (Event))" } } }, @@ -9878,28 +9483,28 @@ "HED" ], [ - 5.5, + 4.5, 0, - "n/a", - "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + "face", + "Blue" ], [ - 6.3, + 4.7, 0, - "n/a", - "(Offset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + "face", + "Blue" ], [ - 8.5, + 4.8, 0, - "face", + "snack", "Blue" ], [ - 9.0, + 5.0, 0, - "n/a", - "Green, (Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)" + "ball", + "Green, Def/MyColor" ] ] } @@ -9909,8 +9514,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-nested-group-delay", - "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-tag-appears-where-not-allowed", + "description": "A temporal tag appears appears in a tsv with no onset column", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -9918,59 +9527,63 @@ ], "tests": { "string_tests": { - "fails": [ - "((Delay/5.0 s, Onset, Def/MyColor), Red)" - ], - "passes": [ - "(Delay/5.0 s, Onset, Def/MyColor), Red" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "((Delay/5.0 s, Onset, Def/MyColor), Red)" + "(Duration/5 s, (Red))" + ], + [ + 0, + "Red, (Def/MyColor, Onset)" + ], + [ + 0, + "(Def/MyColor, Yellow, Inset)" + ], + [ + 0, + "Red, (Def/MyColor, Onset)" + ], + [ + 0, + "(Def/MyColor, Offset)" ] ] ], "passes": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor), Red" + "(Def/MyColor, (Blue))" + ], + [ + 0, + "(Def/MyColor, (Green))" + ], + [ + 0, + "(Def/MyColor)" + ], + [ + 0, + "Red" ] ] ] @@ -9981,30 +9594,58 @@ "sidecar": { "event_code": { "HED": { - "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" + "face": "(Def/MyColor, Onset)", + "ball": "(Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "n/a", - "((Delay/5.0 s, Onset, Def/MyColor), Red)" + "(Duration/5.0, (Red))" ], [ - 5.0, - 0, "face", + "Def/MyColor, Red, Blue" + ], + [ + "ball", + "Def/MyColor, Red, Blue" + ], + [ + "snack", "Green" ] ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Duration/5.0, (Red))", + "ball": "(Delay/4.0, (Green))" + } + } + }, + "events": [ + [ + "event_code", + "HED" + ], + [ + "face", + "Def/MyColor, Red, Blue" + ], + [ + "ball", + "Def/MyColor, Red, Blue" + ] + ] } ], "passes": [ @@ -10012,28 +9653,28 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" + "face": "(Def/MyColor)", + "ball": "(Def/MyColor)", + "snack": "(Def/MyColor)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "face", "Blue" ], [ - 5.0, - 0, - "n/a", - "(Delay/5.0 s, Onset, Def/MyColor), Red" + "face", + "Blue" + ], + [ + "snack", + "Blue" ] ] } @@ -10043,8 +9684,12 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-wrong-number-of-defs-delay", - "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-not-tag-group-delay", + "description": "A Delay is not in the tag group.", + "warning": false, "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10053,11 +9698,11 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Onset, (Red))" + "Delay, Red", + "Delay, Def/Acc/5.4 m-per-s^2" ], "passes": [ - "(Delay/5.0 s, Onset, Def/MyColor, (Red))", - "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + "(Delay/5 s, (Def/Acc/5.4 m-per-s^2))" ] }, "sidecar_tests": { @@ -10065,8 +9710,8 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, (Red))", - "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "Blue, Red", + "ball": "Delay/5.0 s, Def/Acc/5.4 m-per-s^2" } } } @@ -10075,7 +9720,7 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "face": "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" } } } @@ -10092,12 +9737,17 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, (Red))" + "Delay/1.0 s, Onset, Red" ], [ - 5.5, + 4.8, 0, - "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "(Onset, MyColor)" + ], + [ + 5.0, + 0, + "Delay/1.0 s, Offset, MyColor" ] ] ], @@ -10111,7 +9761,17 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, Onset, Def/Acc/5.4 m-per-s^2)" + ], + [ + 6.3, + 0, + "(Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2)" ] ] ] @@ -10122,8 +9782,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, (Red))", - "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" + "face": "Onset, Red", + "ball": "Delay/5.0 s, Offset, Def/Acc/5.4 m-per-s^2" } } }, @@ -10137,20 +9797,20 @@ [ 4.5, 0, - "face", - "Green, Def/MyColor" + "ball", + "Onset, Red" ], [ - 5.0, + 4.8, 0, "n/a", - "(Delay/5.0 s, Onset, (Yellow))" + "(Onset/MyColor)" ], [ - 6.0, + 5.0, 0, - "ball", - "n/a" + "face", + "Offset, MyColor" ] ] } @@ -10160,7 +9820,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "face": "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" } } }, @@ -10172,16 +9832,28 @@ "HED" ], [ - 4.5, + 5.5, + 0, + "n/a", + "(Onset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + ], + [ + 6.3, + 0, + "n/a", + "(Offset, Delay/5.0 s, Def/Acc/5.4 m-per-s^2)" + ], + [ + 8.5, 0, "face", "Blue" ], [ - 5.0, + 9.0, 0, "n/a", - "(Delay/5.0 s, Onset, Def/MyColor, (Blue))" + "Green, (Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)" ] ] } @@ -10191,8 +9863,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-onset-has-more-groups-delay", - "description": "An Onset group has more than one additional tag group.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-nested-group-delay", + "description": "An Onset or Offset tag appears in a nested tag group (not a top-level tag group).", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10201,21 +9876,18 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" + "((Delay/5.0 s, Onset, Def/MyColor), Red)" ], "passes": [ - "(Delay/5.0 s, Onset, Def/MyColor)", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Red), Onset)" + "(Delay/5.0 s, Onset, Def/MyColor), Red" ] }, "sidecar_tests": { "fails": [ { "event_code": { - "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" + "HED": { + "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" } } } @@ -10224,8 +9896,7 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" } } } @@ -10242,12 +9913,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" + "((Delay/5.0 s, Onset, Def/MyColor), Red)" ] ] ], @@ -10261,12 +9927,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor)" - ], - [ - 5.0, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "(Delay/5.0 s, Onset, Def/MyColor), Red" ] ] ] @@ -10277,8 +9938,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", - "ball": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" + "face": "((Delay/5.0 s, Onset, Def/MyColor), Red)" } } }, @@ -10292,20 +9952,14 @@ [ 4.5, 0, - "face", - "Red, Def/MyColor" + "n/a", + "((Delay/5.0 s, Onset, Def/MyColor), Red)" ], [ 5.0, 0, - "ball", + "face", "Green" - ], - [ - 6.0, - 0, - "n/a", - "(Delay/5.0 s, Def/MyColor, (Red), (Blue), Onset)" ] ] } @@ -10315,8 +9969,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor), Red" } } }, @@ -10330,14 +9983,14 @@ [ 4.5, 0, - "n/a", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + "face", + "Blue" ], [ 5.0, 0, - "ball", - "Green, Def/MyColor" + "n/a", + "(Delay/5.0 s, Onset, Def/MyColor), Red" ] ] } @@ -10347,8 +10000,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-offset-has-groups-delay", - "description": "An Offset appears with one or more tags or additional tag groups.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-wrong-number-of-defs-delay", + "description": "An Onset or Offset tag is not grouped with exactly one Def-expand tag group or a Def tag.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10357,11 +10013,11 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Offset, Def/MyColor, Red)", - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, (Red))" + "(Delay/5.0 s, Onset, (Red))" ], "passes": [ - "(Delay/5.0 s, Offset, Def/MyColor)" + "(Delay/5.0 s, Onset, Def/MyColor, (Red))", + "(Delay/5.0 s, Onset, (Def-expand/MyColor, (Label/Pie)), (Red))" ] }, "sidecar_tests": { @@ -10369,10 +10025,8 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "(Delay/5.0 s, Onset, (Red))", + "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" } } } @@ -10381,10 +10035,7 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor)", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" } } } @@ -10401,22 +10052,12 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Delay/5.0 s, Offset, Def/MyColor, (Red))" - ], - [ - 4.9, - 0, - "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + "(Delay/5.0 s, Onset, (Red))" ], [ 5.5, 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), Offset)" + "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" ] ] ], @@ -10430,22 +10071,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Onset, Def/MyColor)" - ], - [ - 4.8, - 0, - "(Delay/5.0 s, Offset, Def/MyColor)" - ], - [ - 4.9, - 0, "(Delay/5.0 s, Onset, Def/MyColor, (Red))" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" ] ] ] @@ -10456,10 +10082,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" + "face": "(Delay/5.0 s, Onset, (Red))", + "ball": "(Delay/5.0 s, Onset, Def/MyColor, Def/Acc/4.3 m-per-s^2)" } } }, @@ -10474,25 +10098,19 @@ 4.5, 0, "face", - "n/a" + "Green, Def/MyColor" ], [ - 4.8, + 5.0, 0, - "square", - "n/a" + "n/a", + "(Delay/5.0 s, Onset, (Yellow))" ], [ - 4.9, + 6.0, 0, "ball", - "Green" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" + "n/a" ] ] } @@ -10502,10 +10120,7 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Onset, Def/MyColor)", - "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", - "square": "(Delay/5.0 s, Offset, Def/MyColor)", - "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red))" } } }, @@ -10520,25 +10135,13 @@ 4.5, 0, "face", - "n/a" - ], - [ - 4.8, - 0, - "square", - "n/a" - ], - [ - 4.9, - 0, - "ball", - "Green" + "Blue" ], [ - 5.5, + 5.0, 0, - "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", - "Orange" + "n/a", + "(Delay/5.0 s, Onset, Def/MyColor, (Blue))" ] ] } @@ -10548,8 +10151,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-mismatch-delay", - "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-onset-has-more-groups-delay", + "description": "An Onset group has more than one additional tag group.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10557,12 +10163,36 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Red), Onset)" + ], + "passes": [ + "(Delay/5.0 s, Onset, Def/MyColor)", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Red), Onset)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), (Yellow), Onset)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" + } + } + } + ] }, "event_tests": { "fails": [ @@ -10575,17 +10205,12 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Offset)" + "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" ], [ 5.5, 0, - "(Delay/5.0 s, Def/MyColor, Offset)" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)" ] ] ], @@ -10599,17 +10224,12 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 5.5, - 0, - "(Def/MyColor, Onset)" + "(Delay/5.0 s, Onset, Def/MyColor)" ], [ - 6.5, + 5.0, 0, - "Red" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ] ] ] @@ -10620,8 +10240,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)" + "face": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), ((Yellow)), Onset)", + "ball": "(Delay/5.0 s, Onset, Def/MyColor, (Red), (Blue))" } } }, @@ -10635,20 +10255,20 @@ [ 4.5, 0, - "ball", - "Red, Blue" + "face", + "Red, Def/MyColor" ], [ - 4.8, + 5.0, 0, "ball", - "Red, Blue" + "Green" ], [ - 5.0, + 6.0, 0, - "face", - "Green" + "n/a", + "(Delay/5.0 s, Def/MyColor, (Red), (Blue), Onset)" ] ] } @@ -10658,8 +10278,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" } } }, @@ -10673,13 +10293,13 @@ [ 4.5, 0, - "ball", - "Blue" + "n/a", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green, (Yellow)), Onset)" ], [ 5.0, 0, - "face", + "ball", "Green, Def/MyColor" ] ] @@ -10690,8 +10310,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-extra tags-delay", - "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-offset-has-groups-delay", + "description": "An Offset appears with one or more tags or additional tag groups.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10700,10 +10323,11 @@ "tests": { "string_tests": { "fails": [ - "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + "(Delay/5.0 s, Offset, Def/MyColor, Red)", + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, (Red))" ], "passes": [ - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + "(Delay/5.0 s, Offset, Def/MyColor)" ] }, "sidecar_tests": { @@ -10711,7 +10335,10 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" } } } @@ -10720,7 +10347,10 @@ { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor)", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" } } } @@ -10735,9 +10365,24 @@ "HED" ], [ - 4.5, + 4.5, + 0, + "(Delay/5.0 s, Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Delay/5.0 s, Offset, Def/MyColor, (Red))" + ], + [ + 4.9, + 0, + "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + ], + [ + 5.5, 0, - "(Delay/5.0 s, Def/MyColor, Blue, (Green), Onset)" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), (Green), Offset)" ] ] ], @@ -10751,7 +10396,22 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + "(Delay/5.0 s, Onset, Def/MyColor)" + ], + [ + 4.8, + 0, + "(Delay/5.0 s, Offset, Def/MyColor)" + ], + [ + 4.9, + 0, + "(Delay/5.0 s, Onset, Def/MyColor, (Red))" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" ] ] ] @@ -10762,8 +10422,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)", - "ball": "Blue" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor, (Red))", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)" } } }, @@ -10778,13 +10440,25 @@ 4.5, 0, "face", - "Red, Def/MyColor" + "n/a" ], [ - 5.0, + 4.8, + 0, + "square", + "n/a" + ], + [ + 4.9, 0, "ball", "Green" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -10794,8 +10468,10 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/Acc/7, Onset)" + "face": "(Delay/5.0 s, Onset, Def/MyColor)", + "ball": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Onset)", + "square": "(Delay/5.0 s, Offset, Def/MyColor)", + "circle": "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset)" } } }, @@ -10809,14 +10485,26 @@ [ 4.5, 0, + "face", + "n/a" + ], + [ + 4.8, + 0, + "square", + "n/a" + ], + [ + 4.9, + 0, "ball", - "Blue" + "Green" ], [ - 5.0, + 5.5, 0, - "face", - "Green, Def/MyColor" + "(Delay/5.0 s, (Def-expand/MyColor, (Label/Pie)), Offset, Blue)", + "Orange" ] ] } @@ -10826,8 +10514,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-duplicated-onset-or-offset-delay", - "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-mismatch-delay", + "description": "An Offset tag associated with a given definition appears after a previous Offset tag without the appearance of an intervening Onset of the same name.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10843,8 +10534,54 @@ "passes": [] }, "event_tests": { - "fails": [], - "passes": [] + "fails": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 6.5, + 0, + "Red, (Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ] + ] + ], + "passes": [ + [ + [ + "onset", + "duration", + "HED" + ], + [ + 4.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 5.5, + 0, + "(Def/MyColor, Onset)" + ], + [ + 6.5, + 0, + "Red" + ] + ] + ] }, "combo_tests": { "fails": [ @@ -10852,8 +10589,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", - "ball": "Blue" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)" } } }, @@ -10867,74 +10604,20 @@ [ 4.5, 0, - "face", - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" - ], - [ - 5.0, - 0, "ball", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "(Delay/5.0 s, Def/MyColor, Offset)" + "Red, Blue" ], [ - 5.0, + 4.8, 0, "ball", - "(Delay/5.0 s, Def/MyColor, Offset)" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Onset)" - } - } - }, - "events": [ - [ - "onset", - "duration", - "event_code", - "HED" - ], - [ - 4.5, - 0, - "face", - "(Delay/5.0 s, Def/MyColor, Offset)" + "Red, Blue" ], [ 5.0, 0, - "ball", - "(Delay/5.0 s, Def/MyColor, Offset)" + "face", + "Green" ] ] } @@ -10944,8 +10627,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Onset)" + "face": "(Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)" } } }, @@ -10959,14 +10642,14 @@ [ 4.5, 0, - "face", + "ball", "Blue" ], [ 5.0, 0, - "ball", - "Green" + "face", + "Green, Def/MyColor" ] ] } @@ -10976,8 +10659,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-outside-its-event-delay", - "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-extra tags-delay", + "description": "An Onset tag group with has tags besides the anchor Def or Def-expand that are not in a tag group.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -10985,12 +10671,32 @@ ], "tests": { "string_tests": { - "fails": [], - "passes": [] + "fails": [ + "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + ], + "passes": [ + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + ] }, "sidecar_tests": { - "fails": [], - "passes": [] + "fails": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)" + } + } + } + ], + "passes": [ + { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + } + } + } + ] }, "event_tests": { "fails": [ @@ -11003,17 +10709,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Inset, (Red))" - ], - [ - 6.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Def/MyColor, Offset)" + "(Delay/5.0 s, Def/MyColor, Blue, (Green), Onset)" ] ] ], @@ -11027,17 +10723,7 @@ [ 4.5, 0, - "(Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" ] ] ] @@ -11048,9 +10734,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Delay/5.0 s, Def/MyColor, Inset)" + "face": "(Delay/5.0 s, Def/MyColor, Blue, Green, Onset)", + "ball": "Blue" } } }, @@ -11064,19 +10749,13 @@ [ 4.5, 0, - "snack", - "Red, Blue" - ], - [ - 4.8, - 0, "face", - "Red, Blue" + "Red, Def/MyColor" ], [ 5.0, 0, - "face", + "ball", "Green" ] ] @@ -11087,9 +10766,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/2.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Def/MyColor, Inset)" + "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/Acc/7, Onset)" } } }, @@ -11101,13 +10779,7 @@ "HED" ], [ - 1.5, - 0, - "face", - "Blue" - ], - [ - 4.8, + 4.5, 0, "ball", "Blue" @@ -11115,7 +10787,7 @@ [ 5.0, 0, - "snack", + "face", "Green, Def/MyColor" ] ] @@ -11126,8 +10798,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-error-inset-group-has-extras-delay", - "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-duplicated-onset-or-offset-delay", + "description": "An Onset or an Offset with a given Def or Def-expand anchor appears in the same event marker with another Onset or Offset that uses the same anchor.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11143,64 +10818,8 @@ "passes": [] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 2.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 4.5, - 0, - "(Delay/5.0 s, Def/MyColor, Blue, Inset)" - ], - [ - 6.5, - 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 5.5, - 0, - "(DDelay/5.0 s, ef/MyColor, Offset)" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" - ], - [ - 4.8, - 0, - "(Delay/5.0 s, Def/MyColor, (Green), Inset)" - ], - [ - 5.5, - 0, - "(Delay/5.0 s, Def/MyColor, Offset)" - ], - [ - 6.5, - 0, - "Red" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ @@ -11208,9 +10827,8 @@ "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Delay/5.0 s, Def/MyColor, Inset)" + "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", + "ball": "Blue" } } }, @@ -11224,32 +10842,53 @@ [ 4.5, 0, - "snack", - "Red, Blue" + "face", + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" ], [ - 4.8, + 5.0, + 0, + "ball", + "Green" + ] + ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" + ], + [ + 4.5, 0, "face", - "Red, Blue" + "(Delay/5.0 s, Def/MyColor, Offset)" ], [ 5.0, 0, - "face", - "Green" + "ball", + "(Delay/5.0 s, Def/MyColor, Offset)" ] ] - } - ], - "passes": [ + }, { "sidecar": { "event_code": { "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Onset)", - "ball": "(Delay/5.0 s, Def/MyColor, Offset)", - "snack": "(Delay/5.0 s, Def/MyColor, Inset)" + "face": "(Delay/5.0 s, Def/MyColor, (Green), Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Onset)" } } }, @@ -11264,25 +10903,45 @@ 4.5, 0, "face", - "Blue" + "(Delay/5.0 s, Def/MyColor, Offset)" ], [ - 4.7, + 5.0, 0, - "face", - "Blue" + "ball", + "(Delay/5.0 s, Def/MyColor, Offset)" + ] + ] + } + ], + "passes": [ + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, (Blue, Green), Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Onset)" + } + } + }, + "events": [ + [ + "onset", + "duration", + "event_code", + "HED" ], [ - 4.8, + 4.5, 0, - "snack", + "face", "Blue" ], [ 5.0, 0, "ball", - "Green, Def/MyColor" + "Green" ] ] } @@ -11292,8 +10951,11 @@ }, { "error_code": "TEMPORAL_TAG_ERROR", - "name": "onset-offset-inset-tag-appears-where-not-allowed-delay", - "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-inset-outside-its-event-delay", + "description": "An Inset tag is not grouped with a Def or Def-expand of an ongoing Onset.", "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11312,22 +10974,22 @@ "fails": [ [ [ + "onset", "duration", "HED" ], [ + 4.5, 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" - ], - [ - 0, - "(Delay/5.0 s, Def/MyColor, Yellow, Inset)" + "(Delay/5.0 s, Inset, (Red))" ], [ + 6.5, 0, - "Red, (Delay/5.0 s, Def/MyColor, Onset)" + "Red, (Delay/5.0 s, Def/MyColor, Offset)" ], [ + 5.5, 0, "(Delay/5.0 s, Def/MyColor, Offset)" ] @@ -11336,22 +10998,22 @@ "passes": [ [ [ + "onset", "duration", "HED" ], [ + 4.5, 0, - "(Def/MyColor, (Blue))" - ], - [ - 0, - "(Def/MyColor, (Green))" + "(Delay/5.0 s, Def/MyColor, Onset)" ], [ + 5.5, 0, - "(Def/MyColor)" + "(Delay/5.0 s, Def/MyColor, Offset)" ], [ + 6.5, 0, "Red" ] @@ -11372,44 +11034,28 @@ }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ - "face", - "Def/MyColor, Red, Blue" - ], - [ - "ball", - "Def/MyColor, Red, Blue" - ], - [ + 4.5, + 0, "snack", - "Green" - ] - ] - }, - { - "sidecar": { - "event_code": { - "HED": { - "face": "(Delay/5.0 s, Def/MyColor, Duration)", - "ball": "(Delay/5.0 s, Def/MyColor, Delay)" - } - } - }, - "events": [ - [ - "event_code", - "HED" + "Red, Blue" ], [ + 4.8, + 0, "face", - "Def/MyColor, Red, Blue" + "Red, Blue" ], [ - "ball", - "Def/MyColor, Red, Blue" + 5.0, + 0, + "face", + "Green" ] ] } @@ -11419,28 +11065,36 @@ "sidecar": { "event_code": { "HED": { - "face": "(Def/MyColor)", - "ball": "(Def/MyColor)", - "snack": "(Def/MyColor)" + "face": "(Delay/2.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Def/MyColor, Inset)" } } }, "events": [ [ + "onset", + "duration", "event_code", "HED" ], [ + 1.5, + 0, "face", "Blue" ], [ - "face", + 4.8, + 0, + "ball", "Blue" ], [ + 5.0, + 0, "snack", - "Blue" + "Green, Def/MyColor" ] ] } @@ -11449,45 +11103,25 @@ } }, { - "error_code": "TILDES_UNSUPPORTED", - "name": "tildes-unsupported", - "description": "The tilde syntax is no longer supported for any version of HED.", - "schema": "8.3.0", + "error_code": "TEMPORAL_TAG_ERROR", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-inset-group-has-extras-delay", + "description": "An Inset group has tags or groups in addition to its defining Def or Def-expand.", + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [ - "Red ~ Blue", - "Red, Blue ~ Green ~ Yellow" - ], - "passes": [ - "Red, Blue" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Red ~ Blue", - "ball": "Red, Blue ~ Green ~ Yellow" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "(Red, Blue), (Green, (Yellow))", - "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ @@ -11497,15 +11131,25 @@ "duration", "HED" ], + [ + 2.5, + 0, + "Red, (Delay/5.0 s, Def/MyColor, Onset)" + ], [ 4.5, 0, - "Red ~ Blue" + "(Delay/5.0 s, Def/MyColor, Blue, Inset)" ], [ - 5.0, + 6.5, 0, - "Red, Blue ~ Green ~ Yellow" + "Red, (Delay/5.0 s, Def/MyColor, Onset)" + ], + [ + 5.5, + 0, + "(DDelay/5.0 s, ef/MyColor, Offset)" ] ] ], @@ -11519,7 +11163,22 @@ [ 4.5, 0, - "(Red, Blue), (Green, (Yellow))" + "(Delay/5.0 s, Def/MyColor, (Blue), Onset)" + ], + [ + 4.8, + 0, + "(Delay/5.0 s, Def/MyColor, (Green), Inset)" + ], + [ + 5.5, + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" + ], + [ + 6.5, + 0, + "Red" ] ] ] @@ -11530,8 +11189,9 @@ "sidecar": { "event_code": { "HED": { - "face": "Red ~ Blue", - "ball": "Red, Blue ~ Green ~ Yellow" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Delay/5.0 s, Def/MyColor, Inset)" } } }, @@ -11545,14 +11205,20 @@ [ 4.5, 0, + "snack", + "Red, Blue" + ], + [ + 4.8, + 0, "face", - "Red, Def/MyColor" + "Red, Blue" ], [ 5.0, 0, - "ball", - "Blue ~ Green ~ Yellow" + "face", + "Green" ] ] } @@ -11562,8 +11228,9 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Delay/5.0 s, Def/MyColor, Inset)" } } }, @@ -11580,6 +11247,18 @@ "face", "Blue" ], + [ + 4.7, + 0, + "face", + "Blue" + ], + [ + 4.8, + 0, + "snack", + "Blue" + ], [ 5.0, 0, @@ -11593,82 +11272,72 @@ } }, { - "error_code": "UNITS_INVALID", - "name": "units-invalid-for-unit-class", - "description": "A tag has a value with units that are invalid or not of the correct unit class for the tag.", - "schema": "8.3.0", + "error_code": "TEMPORAL_TAG_ERROR", + "alt_codes": [ + "TAG_GROUP_ERROR" + ], + "name": "temporal-tag-error-tag-appears-where-not-allowed-delay", + "description": "An Inset, Offset, or Onset tag appears in a tsv with no onset column", + "schema": "8.2.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))" ], "tests": { "string_tests": { - "fails": [ - "Def/Acc/3 s", - "Weight/3 ms" - ], - "passes": [ - "Distance/4 km" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { - "fails": [ - { - "event_code": { - "HED": { - "face": "Def/Acc/3 s", - "ball": "Weight/3 ms" - } - } - } - ], - "passes": [ - { - "event_code": { - "HED": { - "face": "Distance/4 km", - "ball": "Angle/4 degrees" - } - } - } - ] + "fails": [], + "passes": [] }, "event_tests": { "fails": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "Def/Acc/3 s" + "Red, (Delay/5.0 s, Def/MyColor, Onset)" ], [ - 5.5, 0, - "Weight/3 ms" + "(Delay/5.0 s, Def/MyColor, Yellow, Inset)" + ], + [ + 0, + "Red, (Delay/5.0 s, Def/MyColor, Onset)" + ], + [ + 0, + "(Delay/5.0 s, Def/MyColor, Offset)" ] ] ], "passes": [ [ [ - "onset", "duration", "HED" ], [ - 4.5, 0, - "Distance/4 km" + "(Def/MyColor, (Blue))" ], [ - 5.0, 0, - "Angle/4 degrees" + "(Def/MyColor, (Green))" + ], + [ + 0, + "(Def/MyColor)" + ], + [ + 0, + "Red" ] ] ] @@ -11679,31 +11348,54 @@ "sidecar": { "event_code": { "HED": { - "face": "Def/Acc/3 s", - "ball": "Weight/3 ms" + "face": "(Delay/5.0 s, Def/MyColor, Onset)", + "ball": "(Delay/5.0 s, Def/MyColor, Offset)", + "snack": "(Delay/5.0 s, Def/MyColor, Inset)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "face", - "Red, Def/MyColor" + "Def/MyColor, Red, Blue" ], [ - 5.0, - 0, "ball", + "Def/MyColor, Red, Blue" + ], + [ + "snack", "Green" ] ] + }, + { + "sidecar": { + "event_code": { + "HED": { + "face": "(Delay/5.0 s, Def/MyColor, Duration)", + "ball": "(Delay/5.0 s, Def/MyColor, Delay)" + } + } + }, + "events": [ + [ + "event_code", + "HED" + ], + [ + "face", + "Def/MyColor, Red, Blue" + ], + [ + "ball", + "Def/MyColor, Red, Blue" + ] + ] } ], "passes": [ @@ -11711,29 +11403,28 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "face": "(Def/MyColor)", + "ball": "(Def/MyColor)", + "snack": "(Def/MyColor)" } } }, "events": [ [ - "onset", - "duration", "event_code", "HED" ], [ - 4.5, - 0, "face", "Blue" ], [ - 5.0, - 0, - "ball", - "Green, Def/MyColor" + "face", + "Blue" + ], + [ + "snack", + "Blue" ] ] } @@ -11742,9 +11433,13 @@ } }, { - "error_code": "UNITS_INVALID", - "name": "units-invalid-si-units", - "description": "A unit modifier is applied to units that are not SI units.", + "error_code": "TILDES_UNSUPPORTED", + "alt_codes": [ + "CHARACTER_INVALID" + ], + "name": "tildes-unsupported", + "description": "The tilde syntax is no longer supported for any version of HED.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11753,11 +11448,11 @@ "tests": { "string_tests": { "fails": [ - "Distance/3 kfeet", - "Distance/3 kmeters" + "Red ~ Blue", + "Red, Blue ~ Green ~ Yellow" ], "passes": [ - "Distance/3 kilometres" + "Red, Blue" ] }, "sidecar_tests": { @@ -11765,8 +11460,8 @@ { "event_code": { "HED": { - "face": "Distance/3 kfeet", - "ball": "Distance/3 kmeters" + "face": "Red ~ Blue", + "ball": "Red, Blue ~ Green ~ Yellow" } } } @@ -11775,7 +11470,8 @@ { "event_code": { "HED": { - "face": "Distance/3 kilometres" + "face": "(Red, Blue), (Green, (Yellow))", + "ball": "(Def/MyColor, Onset),(Def/Acc/3.5 m-per-s^2)" } } } @@ -11792,12 +11488,12 @@ [ 4.5, 0, - "Distance/3 kfeet" + "Red ~ Blue" ], [ 5.0, 0, - "Distance/3 kmeters" + "Red, Blue ~ Green ~ Yellow" ] ] ], @@ -11811,7 +11507,7 @@ [ 4.5, 0, - "Distance/3 kilometres" + "(Red, Blue), (Green, (Yellow))" ] ] ] @@ -11822,8 +11518,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Distance/3 kfeet", - "ball": "Distance/3 kmeters" + "face": "Red ~ Blue", + "ball": "Red, Blue ~ Green ~ Yellow" } } }, @@ -11844,7 +11540,7 @@ 5.0, 0, "ball", - "Green" + "Blue ~ Green ~ Yellow" ] ] } @@ -11885,10 +11581,11 @@ } }, { - "error_code": "UNITS_MISSING", - "name": "units-missing-on-node-with-unit-class", - "description": "A tag that takes value and has a unit class does not have units.", - "warning": true, + "error_code": "UNITS_INVALID", + "alt_codes": [], + "name": "units-invalid-for-unit-class", + "description": "A tag has a value with units that are invalid or not of the correct unit class for the tag.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -11897,7 +11594,8 @@ "tests": { "string_tests": { "fails": [ - "Acceleration/4.5" + "Def/Acc/3 s", + "Weight/3 ms" ], "passes": [ "Distance/4 km" @@ -11908,8 +11606,8 @@ { "event_code": { "HED": { - "face": "Def/Acc/3", - "ball": "Acceleration/4.5" + "face": "Def/Acc/3 s", + "ball": "Weight/3 ms" } } } @@ -11936,12 +11634,12 @@ [ 4.5, 0, - "Def/Acc/3" + "Def/Acc/3 s" ], [ 5.5, 0, - "Acceleration/4.5" + "Weight/3 ms" ] ] ], @@ -11971,8 +11669,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Def/Acc/3", - "ball": "Acceleration/4.5" + "face": "Def/Acc/3 s", + "ball": "Weight/3 ms" } } }, @@ -12004,7 +11702,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } }, @@ -12034,39 +11732,11 @@ } }, { - "error_code": "UNITS_MISSING", - "name": "units-missing-on-node-with-unit-class", - "description": "A tag that takes value and has a unit class does not have units.", - "warning": true, - "schema": "8.3.0", - "definitions": [], - "tests": { - "string_tests": { - "fails": [ - "Temperature/4.5" - ], - "passes": [ - "Temperature/4 oC" - ] - }, - "sidecar_tests": { - "fails": [], - "passes": [] - }, - "event_tests": { - "fails": [], - "passes": [] - }, - "combo_tests": { - "fails": [], - "passes": [] - } - } - }, - { - "error_code": "VALUE_INVALID", - "name": "value-invalid-#-substitution", - "description": "The value substituted for a placeholder (`#`) is not valid.", + "error_code": "UNITS_INVALID", + "alt_codes": [], + "name": "units-invalid-si-units", + "description": "A unit modifier is applied to units that are not SI units.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12075,13 +11745,11 @@ "tests": { "string_tests": { "fails": [ - "Def/Acc/MyMy", - "Distance/4mxxx", - "Acceleration/banana" + "Distance/3 kfeet", + "Distance/3 kmeters" ], "passes": [ - "Def/Acc/3.4 m-per-s^2", - "Distance/4 m" + "Distance/3 kilometres" ] }, "sidecar_tests": { @@ -12089,8 +11757,8 @@ { "event_code": { "HED": { - "face": "Def/Acc/MyMy", - "ball": "Distance/4mxxx" + "face": "Distance/3 kfeet", + "ball": "Distance/3 kmeters" } } } @@ -12099,8 +11767,7 @@ { "event_code": { "HED": { - "face": "Def/Acc/3.4 m-per-s^2", - "ball": "Distance/4 m" + "face": "Distance/3 kilometres" } } } @@ -12117,12 +11784,12 @@ [ 4.5, 0, - "Def/Acc/MyMy" + "Distance/3 kfeet" ], [ 5.0, 0, - "Distance/4mxxx" + "Distance/3 kmeters" ] ] ], @@ -12136,12 +11803,7 @@ [ 4.5, 0, - "Def/Acc/3.4 m-per-s^2" - ], - [ - 5.0, - 0, - "Distance/4 m" + "Distance/3 kilometres" ] ] ] @@ -12152,8 +11814,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Def/Acc/MyMy", - "ball": "Distance/4mxxx" + "face": "Distance/3 kfeet", + "ball": "Distance/3 kmeters" } } }, @@ -12215,9 +11877,11 @@ } }, { - "error_code": "VALUE_INVALID", - "name": "value-invalid-incompatible-value-class", - "description": "A tag value is incompatible with the specified value class.", + "error_code": "UNITS_MISSING", + "alt_codes": [], + "name": "units-missing-on-node-with-unit-class", + "description": "A tag that takes value and has a unit class does not have units.", + "warning": true, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12226,10 +11890,10 @@ "tests": { "string_tests": { "fails": [ - "Statistical-accuracy/1max1" + "Acceleration/4.5" ], "passes": [ - "Statistical-accuracy/0.677" + "Distance/4 km" ] }, "sidecar_tests": { @@ -12237,7 +11901,8 @@ { "event_code": { "HED": { - "face": "Statistical-accuracy/1max1" + "face": "Def/Acc/3", + "ball": "Acceleration/4.5" } } } @@ -12246,7 +11911,8 @@ { "event_code": { "HED": { - "face": "Statistical-accuracy/0.677" + "face": "Distance/4 km", + "ball": "Angle/4 degrees" } } } @@ -12263,7 +11929,12 @@ [ 4.5, 0, - "Statistical-accuracy/1max1" + "Def/Acc/3" + ], + [ + 5.5, + 0, + "Acceleration/4.5" ] ] ], @@ -12277,7 +11948,12 @@ [ 4.5, 0, - "Statistical-accuracy/0.677" + "Distance/4 km" + ], + [ + 5.0, + 0, + "Angle/4 degrees" ] ] ] @@ -12288,7 +11964,8 @@ "sidecar": { "event_code": { "HED": { - "face": "Statistical-accuracy/1max1" + "face": "Def/Acc/3", + "ball": "Acceleration/4.5" } } }, @@ -12320,7 +11997,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" + "ball": "Def/Acc/7 m-per-s^2, Blue" } } }, @@ -12349,10 +12026,46 @@ } } }, + { + "error_code": "UNITS_MISSING", + "alt_codes": [], + "name": "units-missing-on-node-with-unit-class", + "description": "A tag that takes value and has a unit class does not have units.", + "warning": true, + "schema": "8.3.0", + "definitions": [], + "tests": { + "string_tests": { + "fails": [ + "Temperature/4.5" + ], + "passes": [ + "Temperature/4 oC" + ] + }, + "sidecar_tests": { + "fails": [], + "passes": [] + }, + "event_tests": { + "fails": [], + "passes": [] + }, + "combo_tests": { + "fails": [], + "passes": [] + } + } + }, { "error_code": "VALUE_INVALID", - "name": "value-invalid-value-class-missing", - "description": "A tag value with no value class is assumed to be a text and contains invalid characters.", + "alt_codes": [ + "CHARACTER_INVALID", + "TAG_INVALID" + ], + "name": "value-invalid-#-substitution", + "description": "The value substituted for a placeholder (`#`) is not valid.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12360,20 +12073,16 @@ ], "tests": { "string_tests": { - "fails": [ - "Age/x123 asdf", - "Def/Acc/apple3" - ], - "passes": [ - "Collection/This-collection" - ] + "fails": [], + "passes": [] }, "sidecar_tests": { "fails": [ { "event_code": { "HED": { - "face": "Age/x123 asdf" + "face": "Def/Acc/MyMy", + "ball": "Distance/4mxxx" } } } @@ -12382,58 +12091,30 @@ { "event_code": { "HED": { - "face": "Collection/This-collection" + "face": "Def/Acc/3.4 m-per-s^2", + "ball": "Distance/4 m" } } } ] }, "event_tests": { - "fails": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Age/x123 asdf" - ] - ] - ], - "passes": [ - [ - [ - "onset", - "duration", - "HED" - ], - [ - 4.5, - 0, - "Collection/This-collection" - ] - ] - ] + "fails": [], + "passes": [] }, "combo_tests": { "fails": [ { "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" - } + "response": { + "HED": "Item-count/#" } }, "events": [ [ "onset", "duration", - "event_code", + "response", "HED" ], [ @@ -12445,7 +12126,7 @@ [ 5.0, 0, - "ball", + 4, "Green" ] ] @@ -12454,30 +12135,27 @@ "passes": [ { "sidecar": { - "event_code": { - "HED": { - "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7, Blue" - } + "response": { + "HED": "Item-count/#" } }, "events": [ [ "onset", "duration", - "event_code", + "response", "HED" ], [ 4.5, 0, - "face", + 5, "Blue" ], [ 5.0, 0, - "ball", + 2, "Green, Def/MyColor" ] ] @@ -12488,8 +12166,12 @@ }, { "error_code": "VALUE_INVALID", - "name": "value-invalid-blank-missing", - "description": "The units are not separated from the value by a single blank.", + "alt_codes": [ + "CHARACTER_INVALID" + ], + "name": "value-invalid-incompatible-value-class", + "description": "A tag placeholder value is incompatible with the specified value class.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12498,10 +12180,10 @@ "tests": { "string_tests": { "fails": [ - "Def/Acc/5m-per-s^2" + "Statistical-accuracy/1max1" ], "passes": [ - "Def/Acc/5 m-per-s^2" + "Statistical-accuracy/0.677" ] }, "sidecar_tests": { @@ -12509,7 +12191,7 @@ { "event_code": { "HED": { - "face": "Def/Acc/5m-per-s^2" + "face": "Statistical-accuracy/1max1" } } } @@ -12518,7 +12200,7 @@ { "event_code": { "HED": { - "face": "Def/Acc/5 m-per-s^2" + "face": "Statistical-accuracy/0.677" } } } @@ -12535,7 +12217,7 @@ [ 4.5, 0, - "Def/Acc/5m-per-s^2" + "Statistical-accuracy/1max1" ] ] ], @@ -12549,7 +12231,7 @@ [ 4.5, 0, - "Def/Acc/5 m-per-s^2" + "Statistical-accuracy/0.677" ] ] ] @@ -12560,8 +12242,7 @@ "sidecar": { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" + "face": "Statistical-accuracy/1max1" } } }, @@ -12624,8 +12305,14 @@ }, { "error_code": "VALUE_INVALID", - "name": "value-invalid-#-value-class", - "description": "An extension or a value substituted for a `#` is not allowed by its value class.", + "alt_codes": [ + "CHARACTER_INVALID", + "TAG_INVALID", + "UNITS_INVALID" + ], + "name": "value-invalid-blank-missing-before-units", + "description": "The units are not separated from the value by a single blank.", + "warning": false, "schema": "8.3.0", "definitions": [ "(Definition/Acc/#, (Acceleration/#, Red))", @@ -12634,12 +12321,10 @@ "tests": { "string_tests": { "fails": [ - "Def/Acc/apple3, Blue", - "Acceleration/banana" + "Def/Acc/5m-per-s^2" ], "passes": [ - "Acceleration/3.4 m-per-s^2", - "Def/Acc/10.1 m-per-s^2" + "Def/Acc/5 m-per-s^2" ] }, "sidecar_tests": { @@ -12647,8 +12332,7 @@ { "event_code": { "HED": { - "face": "Acceleration/banana", - "ball": "Def/Acc/apple3, Blue" + "face": "Def/Acc/5m-per-s^2" } } } @@ -12657,8 +12341,7 @@ { "event_code": { "HED": { - "face": "Acceleration/6.8 m-per-s^2", - "ball": "Def/Acc/5.433 m-per-s^2, Blue" + "face": "Def/Acc/5 m-per-s^2" } } } @@ -12675,12 +12358,7 @@ [ 4.5, 0, - "Acceleration/banana" - ], - [ - 5.5, - 0, - "Def/Acc/apple3, Blue" + "Def/Acc/5m-per-s^2" ] ] ], @@ -12694,12 +12372,7 @@ [ 4.5, 0, - "Acceleration/6.8 m-per-s^2" - ], - [ - 5.5, - 0, - "Def/Acc/5.433 m-per-s^2, Blue" + "Def/Acc/5 m-per-s^2" ] ] ] @@ -12743,7 +12416,7 @@ "event_code": { "HED": { "face": "Acceleration/5 m-per-s^2", - "ball": "Def/Acc/7 m-per-s^2, Blue" + "ball": "Def/Acc/7, Blue" } } },