Skip to content

Commit

Permalink
docs: add reading segment by index example to fusion dataset
Browse files Browse the repository at this point in the history
PR Closed: #1221
  • Loading branch information
Lee-000 committed Mar 7, 2022
1 parent 3a04358 commit 32b3a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/code/CADC.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

"""Read Fusion Dataset / get fusion segment"""
fusion_segment = fusion_dataset["2018_03_06/0001"]
fusion_segment = fusion_dataset[0]
""""""

"""Read Fusion Dataset / get sensors"""
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quick_start/examples/CADC.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ You can get the segment names by list them all.
:start-after: """Read Fusion Dataset / list fusion segment names"""
:end-before: """"""

You can get a segment by passing the required segment name.
You can get a segment by passing the required segment name or the segment index.

.. literalinclude:: ../../../../docs/code/CADC.py
:language: python
Expand Down

0 comments on commit 32b3a99

Please sign in to comment.