SpreadsheetValidator¶
- class SpreadsheetValidator(hed_schema)[source]
Methods
|
Constructor for the HedValidator class. |
|
Validate the input data using the schema |
Attributes
- SpreadsheetValidator.__init__(hed_schema)[source]¶
Constructor for the HedValidator 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 or pd.DataFrame) – Input data to be validated. If a dataframe, it is assumed to be assembled already.
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)