Skip to content

Commit

Permalink
docs: add docs about deleteFrame in UpdateData under chapter Examples
Browse files Browse the repository at this point in the history
PR Closed: #1001
  • Loading branch information
rexzheng324-c committed Sep 9, 2021
1 parent fb0406d commit f698904
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/code/update_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@
segment_client = dataset_client.get_segment("SegmentName")
segment_client.delete_data(["a.png", "b.png"])
""""""

"""Delete frame"""
segment_client.delete_frame("00000000003W09TEMC1HXYMC74")
""""""
7 changes: 7 additions & 0 deletions docs/source/examples/update_dataset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ Delete data by the file list.
:language: python
:start-after: """Updata data/ delete data"""
:end-before: """"""

For a fusion dataset, TensorBay SDK supports deleting a frame by its id.

.. literalinclude:: ../../../docs/code/update_dataset.py
:language: python
:start-after: """Delete frame"""
:end-before: """"""

0 comments on commit f698904

Please sign in to comment.