exa.common.api.proto_serialization.array.pack

Contents

exa.common.api.proto_serialization.array.pack#

pack(array)#

Packs a numeric numpy array into protobuf format.

Parameters:

array (ndarray) – Numpy array to convert.

Returns:

A protobuf instance that encapsulates array.

Return type:

iqm.data_definitions.common.v1.data_types_pb2.Array