Skip to content

Commit 7602f27

Browse files
committed
Apply pre-commit linting
1 parent f0d8e68 commit 7602f27

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

scripts/labelling_preproc/add_3d_sample.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
from pathlib import Path
88

99
from labelling_preproc.common.ego_setup import EgoPoses
10-
from labelling_preproc.common.sample_formats import camera_ids_list, sensor_sequence_struct
10+
from labelling_preproc.common.sample_formats import (
11+
camera_ids_list,
12+
sensor_sequence_struct,
13+
)
1114
from labelling_preproc.common.sensor_frame_ceator import SensorFrameCreator
1215
from labelling_preproc.common.s3_client import SegmentS3Client
1316
from labelling_preproc.common.utils import (
@@ -25,11 +28,10 @@ def __init__(self):
2528

2629
# Initialise Segments.ai client
2730
self.client = SegmentS3Client(api_key)
28-
31+
2932
# Initialise Frame creator
3033
self.frame_creator = SensorFrameCreator()
3134

32-
3335
def add(
3436
self, dataset_name: str, sequence_name: str, local_data_directory: Path
3537
):

scripts/labelling_preproc/common/sensor_frame_ceator.py

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/usr/bin/python3
22

33
from labelling_preproc.common.sample_formats import (
4-
image_struct,
5-
pcd_struct,
6-
fsp_l_struct,
7-
rsp_l_struct,
8-
lspf_r_struct,
9-
lspr_l_struct,
10-
rspf_l_struct,
11-
rspr_r_struct)
4+
image_struct,
5+
pcd_struct,
6+
fsp_l_struct,
7+
rsp_l_struct,
8+
lspf_r_struct,
9+
lspr_l_struct,
10+
rspf_l_struct,
11+
rspr_r_struct,
12+
)
1213

1314

14-
class SensorFrameCreator():
15+
class SensorFrameCreator:
1516

1617
def __init__(self):
1718
# Based on vehicle's TF tree
@@ -42,7 +43,8 @@ def create_3dpointcloud_frame(
4243

4344
# Get and Set images based on metadata
4445
pointcloud_frame['images'] = self.get_images(
45-
sync_key_frame, assets_meta)
46+
sync_key_frame, assets_meta
47+
)
4648

4749
# Set ground height offset relative to the lidar
4850
pointcloud_frame['default_z'] = self.GROUND_Z_OFFSET_BELOW_LIDAR_M

0 commit comments

Comments
 (0)