Skip to content

Commit

Permalink
feat: add JSONFrameInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Oct 30, 2024
1 parent 4a0979f commit 1ef7536
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions raillabel/json_format/frame_interval.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

from pydantic import BaseModel


class JSONFrameInterval(BaseModel):
"""A frame interval defines a starting and ending frame number as a closed interval.
That means the interval includes the limit frame numbers.
"""

start: int
end: int

0 comments on commit 1ef7536

Please sign in to comment.