ValidationError#

class pymovements.ValidationError(check_id: str, message: str, affected_files: list[str])[source]#

Raised when a validation check produces a 'fail' or 'error'-severity result.

Parameters:
  • check_id (str) – Identifier of the failing check.

  • message (str) – Human-readable description of the failure.

  • affected_files (list[str]) – File paths of Gaze objects that triggered the failure.

Examples

>>> from pymovements.gaze.quality import ValidationError
>>> try:
...     raise ValidationError('time_column_exists', 'missing', ['f.csv'])
... except ValidationError as exc:
...     print(exc.check_id)
time_column_exists