load_multiview_dataset#
- movement.io.load.load_multiview_dataset(file_dict, source_software, fps=None, **kwargs)[source]#
Load and merge data from multiple files representing different views.
- Parameters:
file_dict (
dict[str,Path|str]) – A dict whose keys are the view names and values are the paths to load.source_software (
Literal['DeepLabCut','SLEAP','LightningPose','Anipose','NWB','VIA-tracks']) – The source software of the file.fps (
float|None) – The number of frames per second in the video. If None (default), thetimecoordinates will be in frame numbers. This argument is ignored whensource_softwareis “NWB”, as the frame rate will be directly read or estimated from metadata in the NWB file.**kwargs – Additional keyword arguments to pass to the software-specific loading functions in modules listed under “See Also”.
- Returns:
movementdataset containing data concatenated along a newviewdimension.- Return type:
Notes
The attributes of the resulting dataset will be taken from the first dataset specified in
file_path_dict. This is the default behaviour ofxarray.concat()used under the hood.