8000 fix code samples in documentation by smidm · Pull Request #535 · talmolab/sleap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix code samples in documentation #535

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

Merged
merged 1 commit into from
Mar 30, 2021
Merged

fix code samples in documentation #535

merged 1 commit into from
Mar 30, 2021

Conversation

smidm
Copy link
Contributor
@smidm smidm commented Mar 30, 2021

The code samples to render properly have to be valid rst literal blocks (https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks). The most affected are multi-line code samples that are joined to a singe line, see https://sleap.ai/api/sleap.io.dataset.html.

The leading " > " could be possibly removed to make copying the snippets easy.

The code samples to render properly have to be valid rst literal blocks (https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks). The most affected are multi-line code samples that are joined to a singe line, see https://sleap.ai/api/sleap.io.dataset.html.
@smidm
Copy link
Contributor Author
smidm commented Mar 30, 2021

outcome:

Screenshot from 2021-03-30 07-31-42

@talmo
Copy link
Collaborator
talmo commented Mar 30, 2021

LGTM! Thanks @smidm!

@talmo talmo merged commit 971ce0b into talmolab:develop Mar 30, 2021
talmo added a commit that referenced this pull request Jun 17, 2021
* Set Twine version to fix pypi uploads on build

- twine v3.4.x and greater seems to have issues with our build system since we have an older version of `importlib_metadata`

* Revert changes from merge into main

* Bump version to 1.1.3

* Update docs

* fix code samples in documentation (#535)

The code samples to render properly have to be valid rst literal blocks (https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks). The most affected are multi-line code samples that are joined to a singe line, see https://sleap.ai/api/sleap.io.dataset.html.

* Minor typo fixed (#538)

* Add CLI options for specifying the GPU when training (#547)

* Add GPU specification to training CLI
* Update CLI docs
* Set linter version

* Minor QOL update (#562)

* Add score metadata to the exported HDF5 analysis files

* Fix and add test for labels.numpy()

* Add some tweaks and docs to video rendering

* Add model describer to sleap-inspect CLI

* Minor logging

* CLI tweak

* Tweak visual indicator of not-visible points

* Color untracked instances consistently

* Track removal utilities
- Add menu option: Tracks -> Delete All Tracks
- Add Labels.remove_all_tracks() method
- Tests

* Try adding token to codecov action

* Pin black formatter version and relint

* Bump minor version

* Update minor version in docs

* Disable verbose coverage uploading

* Update codecov badge branch

Co-authored-by: Matěj 
8000
Šmíd <m@matejsmid.cz>
Co-authored-by: Darío Hereñú <magallania@gmail.com>
talmo added a commit that referenced this pull request Aug 2, 2021
* Set Twine version to fix pypi uploads on build

- twine v3.4.x and greater seems to have issues with our build system since we have an older version of `importlib_metadata`

* Revert changes from merge into main

* Bump version to 1.1.3

* Update docs

* fix code samples in documentation (#535)

The code samples to render properly have to be valid rst literal blocks (https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks). The most affected are multi-line code samples that are joined to a singe line, see https://sleap.ai/api/sleap.io.dataset.html.

* Minor typo fixed (#538)

* Add CLI options for specifying the GPU when training (#547)

* Add GPU specification to training CLI
* Update CLI docs
* Set linter version

* Minor QOL update (#562)

* Add score metadata to the exported HDF5 analysis files

* Fix and add test for labels.numpy()

* Add some tweaks and docs to video rendering

* Add model describer to sleap-inspect CLI

* Minor logging

* CLI tweak

* Tweak visual indicator of not-visible points

* Color untracked instances consistently

* Track removal utilities
- Add menu option: Tracks -> Delete All Tracks
- Add Labels.remove_all_tracks() method
- Tests

* Try adding token to codecov action

* Pin black formatter version and relint

* Bump minor version

* Update minor version in docs

* Disable verbose coverage uploading

* Update codecov badge branch

* Empty instance fixes (#569)

* Fix augmentation with no instances

* Add Labels.copy

* Add empty instance removal methods

* Add empty instance removal in provider constructor

* Fix augmentation test

* Properly ignore empty instances and frames in DLC import

* Fix test

* Lint

* Small GUI fixes (#570)

* Increase range for number of instances to cull

* Add background box to missing nodes for improved visibility

* Lint

* Fix predicted instance coloring order

* Add node label font size configuration

* Fix single instance predictor not using peak threshold param (#571)

* Skeleton merge conflicts (#572)

* Fix video repr when shape data not available

* Merge incompletely matching skeletons into union of nodes

* Add a little extra padding when filling in missing points

* Add automatic call to _fix_array() when accessing or setting nodes

* Add node data merging

* Add test for predicted instance data merge

* Add node merging
- Will update base node with merge node when renaming from GUI

* Lint

* Fix broken tests

* Labels.split() (#574)

* Add labels.split() utility

* Lint

* High level load metrics (#573)

- Add `sleap.load_metrics()`
- Example notebook

* Pre-1.1.5 updates
- Remove version from some places
- Add open in colab button in model eval notebook
- Update installation doc
- Add a general Help page
- Add some deep links to the CLI sections

* Update readme with help links

Co-authored-by: Matěj Šmíd <m@matejsmid.cz>
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0