Skip to content

Commit

Permalink
Update docs generation (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 authored Nov 3, 2024
1 parent e7121ff commit d29a7d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ jobs:
ref: ${{ github.head_ref }}

- name: Install dependencies
run: |
pip install pydoctor
curl -L "https://raw.githubusercontent.com/luxonis/python-api-analyzer-to-json/main/gen-docs.py" -o "gen-docs.py"
run: pip install pydoctor

- name: Build docs
run: |
python gen-docs.py luxonis_ml
run: pydoctor --docformat=epytext luxonis_ml

tests:
needs:
Expand Down
5 changes: 3 additions & 2 deletions luxonis_ml/data/datasets/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ def combine_to_numpy(


class RLESegmentationAnnotation(SegmentationAnnotation):
"""U{Run-length encoded<https://en.wikipedia.org/wiki/Run-length_encoding>}
segmentation mask.
"""Run-length encoded segmentation mask.
@type height: int
@ivar height: The height of the segmentation mask.
Expand All @@ -315,6 +314,8 @@ class RLESegmentationAnnotation(SegmentationAnnotation):
@type counts: Union[List[int], bytes]
@ivar counts: The run-length encoded mask.
This can be a list of integers or a byte string.
@see: U{Run-length encoding<https://en.wikipedia.org/wiki/Run-length_encoding>}
"""

type_: Literal["rle"] = Field("rle", alias="type")
Expand Down

0 comments on commit d29a7d9

Please sign in to comment.