Skip to content

compas_acoustics.pb

compas_acoustics' plugin for compas_pb: its Data types as protobuf messages.

The schema is protobuf_defs/compas_acoustics/pb/generated/acoustics.proto; the Python bindings in generated and the C# bindings of the Grasshopper plugin are generated from it (invoke generate). compas_pb finds the converters through the compas_pb.plugins entry point; importing this package registers them too, for a checkout that is on the path without being installed.

Functions:

plain

plain(value)

value as compas_pb can write it: numpy scalars and arrays as Python numbers and lists, tuples as lists.

schema_hash

schema_hash(root=PROTOBUF_DEFS)

The sha256 of every .proto under root by relative path: equal where both ends agree on the schema.