OnsetValidator

class OnsetValidator[source]

Validates onset/offset pairs.

Methods

hed.validator.onset_validator.OnsetValidator.__init__()

hed.validator.onset_validator.OnsetValidator.validate_temporal_relations(...)

Validate onset/offset/inset tag relations

Attributes

OnsetValidator.__init__()[source]
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, unknown def names).

Return type:

list