__init__.py
rerun.components
The components package defines Python wrapper types for common registered Rerun components.
def ComponentTypeFactory(name, array_cls, field)
Build a component type wrapper.
def union_discriminant_type(data_type, discriminant)
Return the data type of the given discriminant.
def build_dense_union(data_type, discriminant, child)
Build a dense UnionArray given the data_type
, a discriminant, and the child value array.
If the discriminant string doesn't match any possible value, a ValueError
is raised.
WARNING: Because of #705, each new union component needs to be handled in array_to_rust
on the native side.