raillabel_providerkit.validation.validate_transition package

Submodules

raillabel_providerkit.validation.validate_transition.validate_transition module

raillabel_providerkit.validation.validate_transition.validate_transition.validate_transition(scene: Scene) list[Issue]

Validate whether transition annotations have different start and end tracks.

This matches the behavior of the legacy annotation-checks TransitionValidator.

Parameters:

scene (raillabel.Scene) – Scene that should be validated.

Returns:

List of all transition errors in the scene. If an empty list is returned, then there are no errors present.

Return type:

list[Issue]

Module contents

Validation for transition annotations.

raillabel_providerkit.validation.validate_transition.validate_transition(scene: Scene) list[Issue]

Validate whether transition annotations have different start and end tracks.

This matches the behavior of the legacy annotation-checks TransitionValidator.

Parameters:

scene (raillabel.Scene) – Scene that should be validated.

Returns:

List of all transition errors in the scene. If an empty list is returned, then there are no errors present.

Return type:

list[Issue]