Skip to content

Commit fc4d18a

Browse files
Drew KaulDrew Kaul
authored andcommitted
update test payload and validate scenes in append
1 parent 1f9f3a5 commit fc4d18a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

nucleus/dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ def append_scenes(
270270
asynchronous: Optional[bool] = False,
271271
) -> Union[dict, AsyncJob]:
272272
"""TODO: Add updated docstring here"""
273+
for scene in scenes:
274+
scene.validate()
275+
273276
if asynchronous:
274277
check_all_scene_paths_remote(scenes)
275278
request_id = serialize_and_write_to_presigned_url(

tests/helpers.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,21 @@
3232
"reference_id": "scene_1",
3333
"frames": [
3434
{
35-
"lidar": {
36-
"url": TEST_POINTCLOUD_URLS[0],
37-
"type": "pointcloud",
38-
"reference_id": "lidar_frame_1",
39-
"metadata": {},
35+
"index": 0,
36+
"items": {
37+
"lidar": {
38+
"url": TEST_POINTCLOUD_URLS[0],
39+
"type": "pointcloud",
40+
"reference_id": "lidar_frame_1",
41+
"metadata": {},
42+
},
4043
},
41-
},
44+
}
4245
],
4346
"metadata": {},
4447
},
4548
],
49+
"update": False,
4650
}
4751

4852
TEST_DATASET_ITEMS = [

0 commit comments

Comments
 (0)