sleap.io.format.hdf5#
Adaptor for reading/writing SLEAP datasets as HDF5 (including slp
).
Note that this is not the adaptor for reading/writing the “analysis” HDF5 format.
- class sleap.io.format.hdf5.LabelsV1Adaptor[source]#
- property all_exts#
List of all file extensions supported by adaptor.
- can_read_file(file: FileHandle)[source]#
Returns whether this adaptor can read this file.
- can_write_filename(filename: str)[source]#
Returns whether this adaptor can write format of this filename.
- property default_ext#
The default file extension, e.g., ‘json’ (without ‘.’).
- property handles#
Returns the type of object that can be read/written.
The Dispatch class calls this method on all registered adaptors to determine which to use for reading/writing.
- property name#
Human-reading name of the file format
- classmethod read(file: FileHandle, video_search: Optional[Union[Callable, List[str]]] = None, match_to: Optional[Labels] = None, *args, **kwargs)[source]#
Reads the file and returns the appropriate deserialized object.