raillabel.json_format.vec module

class raillabel.json_format.vec.JSONVec(*, name: str, val: list[float], coordinate_system: str, uid: UUID | None = None, type: Literal['values', 'range'] | None = None, attributes: JSONAttributes | None = None)

Bases: _JSONFormatBase

A vector (list) of numbers.

_abc_impl = <_abc._abc_data object>
attributes: JSONAttributes | None
coordinate_system: str

Name of the coordinate system in respect of which this object data is expressed.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

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

name: str

This is a string encoding the name of this object data. It is used as index inside the corresponding object data pointers.

type: Literal['values', 'range'] | None

This attribute specifies whether the vector shall be considered as a descriptor of individual values or as a definition of a range.

uid: UUID | None

This is a string encoding the Universal Unique identifyer of the annotation.

val: list[float]

The numerical values of the vector (list) of numbers.