SpreadsheetValidator

class SpreadsheetValidator(hed_schema)[source]

Methods

SpreadsheetValidator.__init__(hed_schema)

Constructor for the SpreadsheetValidator class.

SpreadsheetValidator.validate(data[, ...])

Validate the input data using the schema

Attributes

SpreadsheetValidator.__init__(hed_schema)[source]

Constructor for the SpreadsheetValidator class.

Parameters:

hed_schema (HedSchema) – HED schema object to use for validation.

SpreadsheetValidator.validate(data, def_dicts=None, name=None, error_handler=None)[source]

Validate the input data using the schema

Parameters:
  • data (BaseInput) – Input data to be validated.

  • def_dicts (list of DefDict or DefDict) – all definitions to use for validation

  • name (str) – The name to report errors from this file as

  • error_handler (ErrorHandler) – Error context to use. Creates a new one if None

Returns:

A list of issues for HED string

Return type:

issues (list of dict)