Skip to content

Commit 85b7a24

Browse files
committed
removed old example
1 parent 9ebb928 commit 85b7a24

File tree

2 files changed

+9
-45
lines changed

2 files changed

+9
-45
lines changed

examples/notebook_annotations_to_coco.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

poseinterface/io.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ def annotations_to_coco(
5454
The format of the input annotations file is automatically inferred based
5555
on its extension. See :func:`sleap_io.io.main.load_file` for supported
5656
formats.
57+
58+
Example
59+
-------
60+
>>> from pathlib import Path
61+
>>> from poseinterface.io import annotations_to_coco
62+
>>> coco_json_path = annotations_to_coco(
63+
... input_path=Path("path/to/annotations.slp"),
64+
... output_json_path=Path("path/to/annotations_coco.json"),
65+
... )
5766
"""
5867
labels = sio.load_file(input_path)
5968
# Check if labels object is empty

0 commit comments

Comments
 (0)