alinarus's picture
Upload folder using huggingface_hub (part 18)
9ff4bea verified
Raw History Blame Contribute Delete
1.14 kB
# DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/python/mod.rs
# Based on "crates/build/re_type_definitions/rerun/components/length.def.rs".
# You can extend this class by creating a "LengthExt" class in "length_ext.py".
from __future__ import annotations
from .. import encodings
from .._baseclasses import (
ComponentBatchMixin,
ComponentMixin,
)
__all__ = ["Length", "LengthBatch"]
class Length(encodings.Float32, ComponentMixin):
"""
**Component**: Length, or one-dimensional size.
Measured in its local coordinate system; consult the archetype in use to determine which
axis or part of the entity this is the length of.
"""
_BATCH_TYPE = None
# You can define your own __init__ function as a member of LengthExt in length_ext.py
# Note: there are no fields here because Length delegates to encodings.Float32
class LengthBatch(encodings.Float32Batch, ComponentBatchMixin):
_COMPONENT_TYPE: str = "rerun.components.Length"
# This is patched in late to avoid circular dependencies.
Length._BATCH_TYPE = LengthBatch # type: ignore[assignment]