File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,7 +419,6 @@ def items_and_annotations(
419419 route = f"dataset/{ self .id } /exportForTraining" ,
420420 requests_command = requests .get ,
421421 )
422- print (api_payload )
423422 return convert_export_payload (api_payload [EXPORTED_ROWS ])
424423
425424 def export_embeddings (
Original file line number Diff line number Diff line change @@ -467,8 +467,7 @@ def test_append_and_export(dataset):
467467 segmentation_annotation ,
468468 ]
469469 )
470-
471- # We don't export everything on the annotations in order to speed up export.
470+ # We don't export everything on segmentation annotations in order to speed up export.
472471 def clear_fields (annotation ):
473472 cleared_annotation = copy .deepcopy (annotation )
474473 cleared_annotation .metadata = {}
@@ -481,15 +480,11 @@ def sort_labelmap(segmentation_annotation):
481480
482481 exported = dataset .items_and_annotations ()
483482 assert exported [0 ][ITEM_KEY ] == ds_items [0 ]
484- assert exported [0 ][ANNOTATIONS_KEY ][BOX_TYPE ][0 ] == clear_fields (
485- box_annotation
486- )
483+ assert exported [0 ][ANNOTATIONS_KEY ][BOX_TYPE ][0 ] == box_annotation
487484 assert sort_labelmap (
488485 exported [0 ][ANNOTATIONS_KEY ][SEGMENTATION_TYPE ]
489486 ) == sort_labelmap (clear_fields (segmentation_annotation ))
490- assert exported [0 ][ANNOTATIONS_KEY ][POLYGON_TYPE ][0 ] == clear_fields (
491- polygon_annotation
492- )
487+ assert exported [0 ][ANNOTATIONS_KEY ][POLYGON_TYPE ][0 ] == polygon_annotation
493488
494489
495490def test_export_embeddings (CLIENT ):
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def dataset(CLIENT):
3838 assert response == {"message" : "Beginning dataset deletion..." }
3939
4040
41+ @pytest .mark .integration
4142def test_index_integration (dataset ):
4243 signed_embeddings_url = TEST_INDEX_EMBEDDINGS_FILE
4344 create_response = dataset .create_custom_index (
You can’t perform that action at this time.
0 commit comments