Module hub.core.chunk_engine.flatten

Expand source code
import numpy as np


# TODO: hilbert curves


def row_wise_to_bytes(array: np.ndarray) -> bytes:
    return array.tobytes()

Functions

def row_wise_to_bytes(array: numpy.ndarray) ‑> bytes
Expand source code
def row_wise_to_bytes(array: np.ndarray) -> bytes:
    return array.tobytes()