Skip to content

Commit

Permalink
refactor: move AttributeType
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Oct 29, 2024
1 parent eca43db commit 3b31c2c
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion raillabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Devkit for working with recorded and annotated train ride data from DB."""
from importlib import metadata

from . import _util, format
from . import format
from .exceptions import *
from .filter.filter import filter
from .format import Scene
Expand Down
2 changes: 0 additions & 2 deletions raillabel/_util/__init__.py

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion raillabel/format/raillabel/_object_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pathlib import Path
from pkgutil import iter_modules

from ..._util._attribute_type import AttributeType
from ._attribute_type import AttributeType
from .object import Object
from .sensor import Sensor

Expand Down
2 changes: 1 addition & 1 deletion raillabel/format/raillabel/element_data_pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import typing as t
from dataclasses import dataclass

from ..._util._attribute_type import AttributeType
from ._attribute_type import AttributeType
from .frame_interval import FrameInterval


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

sys.path.insert(1, str(Path(__file__).parent.parent.parent.parent.parent))

from raillabel._util._attribute_type import AttributeType
from raillabel.format.raillabel._attribute_type import AttributeType
from raillabel.format import ElementDataPointer

# == Fixtures =========================
Expand Down
2 changes: 1 addition & 1 deletion tests/test_raillabel/format/raillabel/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

sys.path.insert(1, str(Path(__file__).parent.parent.parent.parent.parent))

from raillabel._util._attribute_type import AttributeType
from raillabel.format.raillabel._attribute_type import AttributeType
from raillabel.format import (
Bbox,
Cuboid,
Expand Down

0 comments on commit 3b31c2c

Please sign in to comment.