ValidDeepLabCutCSV#

class movement.validators.files.ValidDeepLabCutCSV(file)[source]#

Bases: object

Class for validating DeepLabCut-style .csv files.

The validator ensures that the file contains the expected index column levels.

Raises:

ValueError – If the .csv file does not contain the expected DeepLabCut index column levels among its top rows.

file: Path#

Path to the DeepLabCut .csv file to validate.

level_names: list[str]#

Names of the index column levels found in the .csv file.

suffixes: ClassVar[set[str]] = {'.csv'}#

Expected suffix(es) for the file.