exa.common.api.proto_serialization.array.unpack

Contents

exa.common.api.proto_serialization.array.unpack#

unpack(source)#

Unpacks protobuf to array. Reverse operation of pack().

Parameters:

source (iqm.data_definitions.common.v1.data_types_pb2.Array) – A protobuf instance that encapsulates some data.

Returns:

Unpacked data.

Raises:

ValueError or google.protobuf.message.DecodeError in case of invalid buffer

Return type:

ndarray