Samples#
- class Samples#
Collection of State samples
- append(sample_ids: Sequence[int], state: ToState) None#
Append a sample with the given sample IDs and state.
Raises
ValueErrorif an ID already exists in this collection or occurs more than once insample_ids. The collection is unchanged when validation fails.
- num_samples() int#
Get the number of samples
- sample_ids() set[int]#
Get all sample IDs
- to_v1_bytes() bytes#