hed2Validator

class Hed2Validator()

Hed2Validator class

Hed2Validator.Hed2Validator
Hed2Validator.checkIfTagUnitClassUnitsAreValid(tag)

Check that the unit is valid for the tag’s unit class.

Arguments:
Hed2Validator.checkValueTagSyntax(tag)

Check the syntax of tag values.

Arguments:
Hed2Validator.validateValue(value, isNumeric)

Determine if a stripped value is valid.

Arguments:
  • value (string) – The stripped value.

  • isNumeric (boolean) – Whether the tag is numeric.

Returns:

boolean – Whether the stripped value is valid.