exa.common.api.proto_serialization.setting_node.pack

Contents

exa.common.api.proto_serialization.setting_node.pack#

pack(node, minimal)#

Convert a SettingNode into protobuf representation.

Silently coerces some datatypes to be compatible with the proto definition of Datum: - Numpy arrays of 32-bit ints are converted to 64-bits (Windows only). - Singular numpy types are converted into corresponding native types.

Parameters:
Returns:

Protobuf instance that represents node.

Return type:

iqm.data_definitions.common.v1.setting_pb2.SettingNode