Skip to content

Commit 82e5470

Browse files
author
Ubuntu
committed
cleanups
1 parent 983c91a commit 82e5470

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

nucleus/dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

tests/test_dataset.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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

495490
def test_export_embeddings(CLIENT):

tests/test_indexing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def dataset(CLIENT):
3838
assert response == {"message": "Beginning dataset deletion..."}
3939

4040

41+
@pytest.mark.integration
4142
def test_index_integration(dataset):
4243
signed_embeddings_url = TEST_INDEX_EMBEDDINGS_FILE
4344
create_response = dataset.create_custom_index(

0 commit comments

Comments
 (0)