Skip to content

HED string passes validation with JS/BIDS HED validator, but not online string validator #168

Closed as not planned
@sappelhoff

Description

@sappelhoff

In the eeg_matchingpennies example on the BIDS-examples repository, we have the following HED string:

https://github.com/bids-standard/bids-examples/blob/4460013876560adf95ecef44dc59a5883d24a30b/eeg_matchingpennies/task-matchingpennies_events.json#L58

It passes the validation of the bids-validator, which means it also passes HED validation.

However, passing this string into the online string validator at https://hedtools.org/hed/strings yields the following errors:

Errors for HED string 0:
TAG_REQUIRES_CHILD: Descendant tag required - 'Delay'
TAG_REQUIRES_CHILD: Descendant tag required - 'Duration'
CHARACTER_INVALID: Invalid character ' ' in tag 'Time-block/68 ms'

String used:

(Agent-action, Participant-response, (Lift, (Hand, (Left-side-of, Experiment-participant))), (Release, (Mouse-button, (Left-side-of, Experiment-participant)))), (Delay, Duration, (Approximately-equal-to, Time-block/68 ms)), (Sensory-event, Visual-presentation, (Drawing, (ID/left_hand.png, Hand, (Left-side-of, Computer-screen))), (Feedback, Penalty)), Description/Subject raised left hand and computer presented image of hand to left side

The errors can be solved by taking this part:

(Delay, Duration, (Approximately-equal-to, Time-block/68 ms))

and reducing it to:

Delay/#68ms

... although I feel like the nuance of that 68ms is only "approximated" is lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions