deltakit.explorer.data.write_binary_data_to_file#
- deltakit.explorer.data.write_binary_data_to_file(data: Iterable[list[int]] | ndarray[tuple[Any, ...], dtype[_ScalarT]], destination_format: DataFormat, result_file: str | Path)#
Writes a stream of bit lines (each List[int] is a line of {0, 1}) into a file of desired format.
- Parameters:
data (Union[Iterable[List[int]], npt.NDArray]) – iterable of bit strings, or numpy array.
destination_format (DataFormat) – one of popular format, 01, b8, or csv.
result_file (str | Path) – str or Path object. Path to a file.