Reader

Reader#

class hybrid_aif.data.Reader[source]#

Bases: Protocol

Random-access episode reader over flat per-column storage (a protocol).

lengths and offsets give each stored episode’s step count and its first step in the flat storage; column_names the stored columns; read_slice(ep_idx, start, end) returns steps start to end of one episode as a column dict. A Format’s open_reader returns one.

__init__(*args, **kwargs)#