Skip to content

Commit

Permalink
permission
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk committed Aug 10, 2023
1 parent f3a8834 commit 7049e1c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/clean-up-and-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- 'main'
- 'dev'

permissions:
contents: write

jobs:
clean-up:
name: Clean Up Python Notebooks
Expand Down
7 changes: 0 additions & 7 deletions spatialyze/video_processor/camera_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ def __iter__(self):
self.road_direction,
]
)

def to_CameraConfig(self):
return _CameraConfig(
frame_id=self.frame_id,

)



def interpolate(f1: CameraConfig, f2: CameraConfig, timestamp: datetime):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def associate_segment_mapping(
):
if segment_mapping_meta is None:
return None
return segment_mapping_meta[tracking_result.frame_idx].get(tracking_result.object_id)
return segment_mapping_meta[tracking_result.frame_idx].get(tracking_result.object_id)
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 @@ -62,4 +62,4 @@ def format_trajectory(
pairs,
itemHeadings,
translations,
), info_found
), info_found
2 changes: 1 addition & 1 deletion spatialyze/video_processor/utils/get_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def get_tracks(
t[0].prev = trajectory[i - 1][0]
if i < last:
t[0].next = trajectory[i + 1][0]
return trajectories
return trajectories

0 comments on commit 7049e1c

Please sign in to comment.