ValidNWBFile#

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

Bases: object

Class for validating NWB files.

The validator ensures that the file is either:

  • a valid NWB file (.nwb) path, or

  • an NWBFile object.

file: Path | NWBFile#

Path to the NWB file on disk (ending in “.nwb”) or an NWBFile object.

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

Expected suffix(es) for the file.