From 03aacd50a9efbb6e7af819ff4dc349ae557894ea Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Sun, 25 Feb 2024 08:41:44 +0000 Subject: [PATCH] style: [CI] format --- spatialyze/database.py | 3 +-- spatialyze/utils/ingest_processed_nuscenes.py | 2 +- spatialyze/world.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spatialyze/database.py b/spatialyze/database.py index 938e0e9..ecaccdd 100644 --- a/spatialyze/database.py +++ b/spatialyze/database.py @@ -193,8 +193,7 @@ def _create_item_detection_table(self, commit=True): def _create_metadata_table(self, commit=True): cursor = self.connection.cursor() cursor.execute( - "CREATE TABLE Spatialyze_Metadata (" - f"{columns(_schema, METADATA_COLUMNS)})" + "CREATE TABLE Spatialyze_Metadata (" f"{columns(_schema, METADATA_COLUMNS)})" ) self._commit(commit) cursor.close() diff --git a/spatialyze/utils/ingest_processed_nuscenes.py b/spatialyze/utils/ingest_processed_nuscenes.py index 63f2a43..19a1bfc 100644 --- a/spatialyze/utils/ingest_processed_nuscenes.py +++ b/spatialyze/utils/ingest_processed_nuscenes.py @@ -111,7 +111,7 @@ def ingest_processed_nuscenes( traj = Trajectory( item_id, frame_nums.tolist(), - k.scene + '-' + k.channel, + k.scene + "-" + k.channel, obj.object_type, translations.tolist(), itemHeadings.tolist(), diff --git a/spatialyze/world.py b/spatialyze/world.py index 278feba..a0bd67c 100644 --- a/spatialyze/world.py +++ b/spatialyze/world.py @@ -175,7 +175,7 @@ def _execute(world: "World", optimization=True): # execute pipeline video = Video(v.video, v.camera) - database.update(f'INSERT INTO {METADATA_TABLE} (fps) VALUES ({video.fps})') + database.update(f"INSERT INTO {METADATA_TABLE} (fps) VALUES ({video.fps})") process = _track(t3ds) if temporal else _detect(d3ds) vresults[v.video] = process(video, database)