deltakit.explorer.types.BinaryDataType.split#

BinaryDataType.split(shards: int) list[BinaryDataType]#

Split a data file into multiple blocks based on the number of output files. Return objects of the same class.

Parameters:

shards (int) – Number of approximately equal chunks.

Returns:

List of chuck objects, of the same type as the calling object.

Return type:

List[BinaryDataType]

Examples

Splitting the data file:

object = Measurements(data_string, DataFormat.F01)
parts = object.split(shards=shards)