Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk committed Aug 10, 2023
1 parent d588eb1 commit bdcdcb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spatialyze/video_processor/utils/format_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def format_trajectory(
video_name: "str",
obj_id: "str",
obj_id: "int",
track: "list[tuple[Tracking3DResult, CameraConfig, SegmentPoint | None]]",
base=None,
):
Expand Down
10 changes: 7 additions & 3 deletions spatialyze/video_processor/utils/insert_trajectory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import datetime
import numpy as np
import numpy.typing as np

from ...database import Database
from ...utils import join
from ..types import Float3
Expand All @@ -9,9 +13,9 @@ def insert_trajectory(
item_id: str,
camera_id: str,
object_type: str,
postgres_timestamps: "list[str]",
pairs: "list[Float3]",
itemHeading_list: "list[int]",
postgres_timestamps: "list[datetime.datetime]",
pairs: "list[npt.NDArray[np.floating]]",
itemHeading_list: "list[float | None]",
translation_list: "list[Float3]",
# road_types: "list[str]",
# roadpolygon_list: "list[list[tuple[float, float]]]"
Expand Down

0 comments on commit bdcdcb7

Please sign in to comment.