romtools.vector_space.utils.snapshot_loader#

Interfaces for loading snapshot blocks on demand.

Classes

SnapshotLoader(*args, **kwargs)

Interface for loading a contiguous range of snapshots.

class romtools.vector_space.utils.snapshot_loader.SnapshotLoader(*args, **kwargs)[source]#

Bases: Protocol

Interface for loading a contiguous range of snapshots.

The final axis of the returned array is the snapshot axis and must contain exactly end - start snapshots. start is inclusive and end is exclusive. The dimensions preceding the snapshot axis represent the local state shape and must remain consistent between calls.