encode

subsurface.writer.to_rex.gempy_to_rexfile.encode(input_: list)[source]

Encode python objects - normally Python primitives or numpy arrays - into its correspondent byte representation

Parameters

input (List[tuples]) – List of tuples: (object, type)

Returns

Array of bytes

Return type

byte