proto_serialization

proto_serialization#

Conversions between Protocol buffers in iqm.data_structures.common and Python objects in exa-common.

Each submodule corresponds to a Protobuf definition from iqm.data_structures.common. Each module has at least 2 functions, pack and unpack, which pack the Python type into a Protobuf instance or vice versa.

The packed objects can be nested when constructing new Protobuf objects. It is intended that the user does the final serialization using the Protobuf service methods.

Full path: exa.common.api.proto_serialization

Subpackages and modules

array

Convert numpy arrays to protos and back.

datum

Convert native Python types and numpy arrays to protos and back.

nd_sweep

Convert NdSweeps to protos and back.

sequence

Convert Python Sequences to protos and back.

setting_node

Convert SettingNodes to protos and back.