raillabel.json_format.vec_attribute module

class raillabel.json_format.vec_attribute.JSONVecAttribute(*, name: str, val: list[float | str])

Bases: _JSONFormatBase

A vec attribute.

_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str

Friendly identifier describing the attribute. Used to track the attribute throughout annotations and frames.

val: list[float | str]

The value vector of the attribute.