Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed coco #1001

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
223 changes: 0 additions & 223 deletions darwin/importer/formats/coco.py

This file was deleted.

93 changes: 0 additions & 93 deletions tests/darwin/importer/formats/import_coco_test.py

This file was deleted.

18 changes: 0 additions & 18 deletions tests/darwin/importer/importer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,6 @@ def test__build_main_annotations_lookup_table() -> None:
result = _build_main_annotations_lookup_table(annotation_classes)
assert result == expected_lookup


def test__find_and_parse():
"""
Ensure that the function doesn't return any None values.
"""
with tempfile.TemporaryDirectory() as tmpdir:
with ZipFile("tests/data.zip") as zfile:
zfile.extractall(tmpdir)
annotations_path = Path(tmpdir) / "v7-darwin-json-v2" / "_find_and_parse"
importer = get_importer("coco")
files = _find_and_parse(
importer=importer,
file_paths=[annotations_path],
)
assert all(isinstance(file, dt.AnnotationFile) for file in files)


def test__build_attribute_lookup() -> None:
mock_dataset = Mock()
mock_dataset.fetch_remote_attributes.return_value = [
Expand Down Expand Up @@ -2215,7 +2198,6 @@ def test__assign_item_properties_to_dataset(mock_client, mock_dataset, mock_cons


def test__get_annotation_format():
assert _get_annotation_format(get_importer("coco")) == "coco"
assert _get_annotation_format(get_importer("csv_tags_video")) == "csv_tags_video"
assert _get_annotation_format(get_importer("csv_tags")) == "csv_tags"
assert _get_annotation_format(get_importer("darwin")) == "darwin"
Expand Down
Loading