File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- from t4_devkit .common .io import load_json
43import struct
54from abc import abstractmethod
65from typing import TYPE_CHECKING , ClassVar , TypeVar
76
87import numpy as np
98from attrs import define , field
109
10+ from t4_devkit .common .io import load_json
11+
1112if TYPE_CHECKING :
1213 from typing_extensions import Self
1314
@@ -252,7 +253,7 @@ class RadarPointCloud(PointCloud):
252253
253254 # class variables
254255 invalid_states : ClassVar [list [int ]] = [0 ]
255- dynprop_states : ClassVar [list [int ]] = range (7 )
256+ dynprop_states : ClassVar [list [int ]] = list ( range (7 ) )
256257 ambig_states : ClassVar [list [int ]] = [3 ]
257258
258259 @staticmethod
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
3+ from t4_devkit .dataclass .label import SemanticLabel
4+
5+
6+ def test_semantic_label () -> None :
7+ label = SemanticLabel ("car" , ["vehicle.car" ])
8+
9+ # check properties
10+ assert label .name == "car"
11+ assert label .attributes == ["vehicle.car" ]
12+
13+ # same instance
14+ assert label == label
15+ # same label name
16+ assert label == SemanticLabel ("car" )
17+ assert label == "car"
18+ # same label name, but different case
19+ assert label != SemanticLabel ("Car" )
20+ assert label != "Car"
21+ # different label name
22+ assert label != SemanticLabel ("bike" )
23+ assert label != "bike"
Original file line number Diff line number Diff line change 22
33import numpy as np
44import pytest
5- from pyquaternion import Quaternion
65
76from t4_devkit .dataclass .trajectory import Future
7+ from t4_devkit .typing import Quaternion
88
99
1010def test_future_trajectory (dummy_future : Future ) -> None :
You can’t perform that action at this time.
0 commit comments