StringValidator

class StringValidator[source]

Runs checks on the raw string that depend on multiple characters, e.g. mismatched parentheses

Methods

StringValidator.__init__()

StringValidator.check_count_tag_group_parentheses(...)

Report unmatched parentheses.

StringValidator.check_delimiter_issues_in_hed_string(...)

Report missing commas or commas in value tags.

StringValidator.run_string_validator(...)

Attributes

StringValidator.CLOSING_GROUP_CHARACTER

StringValidator.COMMA

StringValidator.OPENING_GROUP_CHARACTER

StringValidator.__init__()
static StringValidator.check_count_tag_group_parentheses(hed_string)[source]

Report unmatched parentheses.

Parameters:

hed_string (str) – A hed string.

Returns:

A list of validation list. Each issue is a dictionary.

Return type:

list

StringValidator.check_delimiter_issues_in_hed_string(hed_string)[source]

Report missing commas or commas in value tags.

Parameters:

hed_string (str) – A hed string.

Returns:

A validation issues list. Each issue is a dictionary.

Return type:

list

StringValidator.run_string_validator(hed_string_obj)[source]
StringValidator.CLOSING_GROUP_CHARACTER = ')'
StringValidator.COMMA = ','
StringValidator.OPENING_GROUP_CHARACTER = '('