Log Metadata

class py123d.datatypes.metadata.LogMetadata[source]

Class to hold metadata information about a log.

Public Data Attributes:

dataset

The dataset name in lowercase.

split

Data split name, typically {dataset_name}_{train/val/test}.

log_name

Name of the log file.

location

Location of the log data.

timestep_seconds

The time interval between consecutive frames in seconds.

vehicle_parameters

The VehicleParameters of the ego vehicle, if available.

box_detection_label_class

The box detection label class specific to the dataset, if available.

pinhole_camera_metadata

Dictionary of PinholeCameraType to PinholeCameraMetadata.

fisheye_mei_camera_metadata

Dictionary of FisheyeMEICameraType to FisheyeMEICameraMetadata.

lidar_metadata

Dictionary of LiDARType to LiDARMetadata.

map_metadata

The MapMetadata associated with the log, if available.

version

Version of the py123d library used to create this log metadata (not used currently).

Public Methods:

from_dict(data_dict)

Create a LogMetadata instance from a Python dictionary.

to_dict()

Convert the LogMetadata instance to a Python dictionary.


property dataset: str

The dataset name in lowercase.

property split: str

Data split name, typically {dataset_name}_{train/val/test}.

property log_name: str

Name of the log file.

property location: str

Location of the log data.

property timestep_seconds: float

The time interval between consecutive frames in seconds.

property vehicle_parameters: VehicleParameters | None

The VehicleParameters of the ego vehicle, if available.

property box_detection_label_class: Type[BoxDetectionLabel] | None

The box detection label class specific to the dataset, if available.

property pinhole_camera_metadata: Dict[PinholeCameraType, PinholeCameraMetadata]

Dictionary of PinholeCameraType to PinholeCameraMetadata.

property fisheye_mei_camera_metadata: Dict[FisheyeMEICameraType, FisheyeMEICameraMetadata]

Dictionary of FisheyeMEICameraType to FisheyeMEICameraMetadata.

property lidar_metadata: Dict[LiDARType, LiDARMetadata]

Dictionary of LiDARType to LiDARMetadata.

property map_metadata: MapMetadata | None

The MapMetadata associated with the log, if available.

property version: str

Version of the py123d library used to create this log metadata (not used currently).

classmethod from_dict(data_dict)[source]

Create a LogMetadata instance from a Python dictionary.

Parameters:

data_dict (Dict) – Dictionary containing log metadata.

Raises:

ValueError – If the dictionary is missing required fields.

Return type:

LogMetadata

Returns:

A LogMetadata instance.

to_dict()[source]

Convert the LogMetadata instance to a Python dictionary.

Return type:

Dict

Returns:

A dictionary representation of the log metadata.