ValidVIA#

class ethology.validators.annotations.ValidVIA(path)[source]#

Bases: object

Class for valid VIA JSON annotation files.

It checks the input file is a valid JSON file, matches the VIA schema and contains the required keys.

path#

Path to the VIA JSON file, passed as an input.

Type:

Path | str

schema#

The JSON schema is set to the default VIA schema.

Type:

dict

required_keys#

The required keys for the VIA JSON file.

Type:

dict

Raises: