LoaderProtocol#
- class movement.io.load.LoaderProtocol(*args, **kwargs)[source]#
Bases:
ProtocolProtocol for loader functions to be registered via
register_loader.All loader functions registered via
register_loader()must conform to this protocol. Loaders must accept a file path or apynwb.file.NWBFileobject as their first argument and return anxarray.Datasetcontaining pose tracks or bounding box tracks. Additional positional and keyword arguments are allowed.See also
register_loaderDecorator for registering loader functions.
- __call__(file, *args, **kwargs)[source]#
Load data from a file.
- Parameters:
file (
Path|str|NWBFile) – Path to the file or apynwb.file.NWBFileobject.*args – Additional positional arguments for the loader.
**kwargs – Additional keyword arguments for the loader.
- Returns:
The loaded dataset.
- Return type: