OnsetValidator

class OnsetValidator[source]

Validates onset/offset pairs.

Methods

OnsetValidator.__init__()

OnsetValidator.check_for_banned_tags(hed_string)

Returns an issue for every tag found from the banned list

OnsetValidator.validate_temporal_relations(...)

Validate onset/offset/inset tag relations

Attributes

OnsetValidator.__init__()[source]
static OnsetValidator.check_for_banned_tags(hed_string)[source]

Returns an issue for every tag found from the banned list

Parameters:

hed_string (HedString) – the string to check

Returns:

The validation issues associated with the characters. Each issue is dictionary.

Return type:

list

OnsetValidator.validate_temporal_relations(hed_string_obj)[source]

Validate onset/offset/inset tag relations

Parameters:

hed_string_obj (HedString) – The hed string to check.

Returns:

A list of issues found in validating onsets (i.e., out of order onsets, repeated def names).

Return type:

list