Skip to content

mopipe.core.data.collator

collator.py

This module contains the Mocap Data Collator class, which is used to collate data from multiple sources and save it.

MocapDataCollator Objects

class MocapDataCollator()

MocapDataCollator

The MocapDataCollator class is used to collate data from multiple sources and save it.

__init__

def __init__(output_dir: Path, output_name: str)

Initialize the MocapDataCollator.

Parameters

output_dir : Path The directory to save the collated data in. output_name : str The base name to save the collated data under. level : DataLevel The level of the data to be read.

readers

@property
def readers() -> list[AbstractReader]

The readers to be used to read the data.

output_dir

@property
def output_dir() -> Path

The directory to save the collated data in.

output_name

@property
def output_name() -> str

The name to save the collated data under.

add_reader

def add_reader(reader: AbstractReader) -> int

Add a reader to the collator.

Parameters

reader : AbstractReader The reader to be added.

Returns

int The reader index.

collate

def collate() -> DataFrame

Collate the data from the readers.

Returns

DataFrame The collated data.