HedIDValidator

class HedIDValidator(hed_schema)[source]

Support class to validate hedIds in schemas

Methods

HedIDValidator.__init__(hed_schema)

Support class to validate hedIds in schemas

HedIDValidator.verify_tag_id(hed_schema, ...)

Validates the hedID attribute values

Attributes

HedIDValidator.__init__(hed_schema)[source]

Support class to validate hedIds in schemas

Parameters:
  • hed_schema (HedSchemaBase) – The schema we’re validating.

  • number (It uses this to derive the version) –

HedIDValidator.verify_tag_id(hed_schema, tag_entry, attribute_name)[source]

Validates the hedID attribute values

This follows the template from schema_attribute_validators.py

Parameters:
  • hed_schema (HedSchema) – The schema to use for validation

  • tag_entry (HedSchemaEntry) – The schema entry for this tag.

  • attribute_name (str) – The name of this attribute

Returns:

A list of issues from validating this attribute.

Return type:

issues(list)