deltakit.explorer.types.RAMData#

class deltakit.explorer.types.RAMData(data_format: DataFormat, content: list[list[int]] | ndarray[tuple[Any, ...], dtype[_ScalarT]], data_width: int = -1)#

Bases: TypedData

An wrapper around a collection stored in RAM.

Methods#

RAMData.as_01_string

Generate or return a 01 string for the stored data.

RAMData.as_b8_bytes

Generate or return a b8 string for the stored data.

RAMData.as_numpy

Generate or return an numpy array for the stored data.

RAMData.get_width

Infer the width of the string from the data.