Skip to content

Reader

timenet.reader source

Deserialization of a TimeF version directory into a :class:~timenet.dataset.TimeFDataset.

TimeFReader source

Reads a committed TimeF version directory. Use as a context manager to close shard handles.

metadata property source

metadata: DatasetMetadata

The dataset's descriptive identity.

schema property source

schema: DatasetSchema

The dataset's type declaration, reconstructed from the manifest.

tasks property source

tasks: tuple[Task, ...]

All tasks, with from_tasks resolved.

close source

close() -> None

Close every cached shard file handle and drop cached row groups.

iter_samples source

iter_samples() -> Iterator[Sample]

Yield each sample lazily without materializing a :class:TimeFDataset.

Yields:

Type Description
Sample

Each reconstructed :class:Sample.

read source

read() -> TimeFDataset

Materialize the full dataset.

Returns:

Name Type Description
A TimeFDataset

class:TimeFDataset with lazy per-series loaders and the reconstructed schema/tasks.