-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all of the docstrings on public-facing APIs to numpy style (#1001
) * Update __init__.py * More docstrings * lints * Tweak the material class template * Add some extra spacing * Docstrings for the dataclasses * Update obb docstring * docstrings for camera * docstrings for meshes and images * More docstring linting * docstrings for lines * Docstrings for images * docstrings for points * docstrings for rects * Docstrings for scalar * Docstrings for tensor * Docstrings for text * docstrings for transforms * Make tabs sticky * Revert usage of type subscriptions since not in python 3.8 * unused import * Fix docstring for rerun.init() * Consistency in points doc
- Loading branch information
Showing
20 changed files
with
656 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: rerun.log_annotation_context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{# Very minimally patched from: | ||
https://github.com/mkdocstrings/python/blob/master/src/mkdocstrings_handlers/python/templates/material/_base/class.html | ||
|
||
See: CHANGE comments below | ||
#} | ||
|
||
{{ log.debug("Rendering " + class.path) }} | ||
|
||
<div class="doc doc-object doc-class"> | ||
{% with html_id = class.path %} | ||
|
||
{% if root %} | ||
{% set show_full_path = config.show_root_full_path %} | ||
{% set root_members = True %} | ||
{% elif root_members %} | ||
{% set show_full_path = config.show_root_members_full_path or config.show_object_full_path %} | ||
{% set root_members = False %} | ||
{% else %} | ||
{% set show_full_path = config.show_object_full_path %} | ||
{% endif %} | ||
|
||
{% if not root or config.show_root_heading %} | ||
|
||
{% filter heading(heading_level, | ||
role="class", | ||
id=html_id, | ||
class="doc doc-heading", | ||
toc_label=class.name) %} | ||
|
||
{% if config.separate_signature %} | ||
<span class="doc doc-object-name doc-class-name">{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}</span> | ||
{% elif config.merge_init_into_class and "__init__" in class.members -%} | ||
{%- with function = class.members["__init__"] -%} | ||
{%- filter highlight(language="python", inline=True) -%} | ||
{# CHANGE: Insert class before class for better highlighting #} | ||
class {% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %} | ||
{%- include "signature.html" with context -%} | ||
{%- endfilter -%} | ||
{%- endwith -%} | ||
{% else %} | ||
{# CHANGE: Insert class before class for better highlighting #} | ||
{%- filter highlight(language="python", inline=True) -%} | ||
class {% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %} | ||
{%- endfilter -%} | ||
{% endif %} | ||
|
||
{% with labels = class.labels %} | ||
{% include "labels.html" with context %} | ||
{% endwith %} | ||
|
||
{% endfilter %} | ||
|
||
{% if config.separate_signature and config.merge_init_into_class %} | ||
{% if "__init__" in class.members %} | ||
{% with function = class.members["__init__"] %} | ||
{% filter highlight(language="python", inline=False) %} | ||
{% filter format_signature(config.line_length) %} | ||
{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %} | ||
{% include "signature.html" with context %} | ||
{% endfilter %} | ||
{% endfilter %} | ||
{% endwith %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% else %} | ||
{% if config.show_root_toc_entry %} | ||
{% filter heading(heading_level, | ||
role="class", | ||
id=html_id, | ||
toc_label=class.path if config.show_root_full_path else class.name, | ||
hidden=True) %} | ||
{% endfilter %} | ||
{% endif %} | ||
{% set heading_level = heading_level - 1 %} | ||
{% endif %} | ||
|
||
<div class="doc doc-contents {% if root %}first{% endif %}"> | ||
{% if config.show_bases and class.bases %} | ||
<p class="doc doc-class-bases"> | ||
Bases: {% for expression in class.bases -%} | ||
<code>{% include "expression.html" with context %}</code>{% if not loop.last %}, {% endif %} | ||
{% endfor -%} | ||
</p> | ||
{% endif %} | ||
|
||
{% with docstring_sections = class.docstring.parsed %} | ||
{% include "docstring.html" with context %} | ||
{% endwith %} | ||
|
||
{% if config.merge_init_into_class %} | ||
{% if "__init__" in class.members and class.members["__init__"].has_docstring %} | ||
{% with docstring_sections = class.members["__init__"].docstring.parsed %} | ||
{% include "docstring.html" with context %} | ||
{% endwith %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if config.show_source %} | ||
{% if config.merge_init_into_class %} | ||
{% if "__init__" in class.members and class.members["__init__"].source %} | ||
<details class="quote"> | ||
<summary>Source code in <code>{{ class.relative_filepath }}</code></summary> | ||
{{ class.members["__init__"].source|highlight(language="python", linestart=class.members["__init__"].lineno, linenums=True) }} | ||
</details> | ||
{% endif %} | ||
{% elif class.source %} | ||
<details class="quote"> | ||
<summary>Source code in <code>{{ class.relative_filepath }}</code></summary> | ||
{{ class.source|highlight(language="python", linestart=class.lineno, linenums=True) }} | ||
</details> | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% with obj = class %} | ||
{% set root = False %} | ||
{% set heading_level = heading_level + 1 %} | ||
{% include "children.html" with context %} | ||
{% endwith %} | ||
</div> | ||
|
||
{% endwith %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1838b71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust Benchmark
datastore/insert/batch/rects/insert
576466
ns/iter (± 1687
)559409
ns/iter (± 7203
)1.03
datastore/latest_at/batch/rects/query
1789
ns/iter (± 5
)1744
ns/iter (± 18
)1.03
datastore/latest_at/missing_components/primary
305
ns/iter (± 7
)303
ns/iter (± 11
)1.01
datastore/latest_at/missing_components/secondaries
380
ns/iter (± 0
)362
ns/iter (± 4
)1.05
datastore/range/batch/rects/query
155625
ns/iter (± 232
)152112
ns/iter (± 2680
)1.02
mono_points_arrow/generate_message_bundles
47435847
ns/iter (± 821056
)43478086
ns/iter (± 1530536
)1.09
mono_points_arrow/generate_messages
126132452
ns/iter (± 1210529
)121762850
ns/iter (± 1478126
)1.04
mono_points_arrow/encode_log_msg
151815575
ns/iter (± 2491572
)149258659
ns/iter (± 2059181
)1.02
mono_points_arrow/encode_total
328116379
ns/iter (± 2494487
)317524430
ns/iter (± 4600271
)1.03
mono_points_arrow/decode_log_msg
175001643
ns/iter (± 1057898
)168648389
ns/iter (± 2272806
)1.04
mono_points_arrow/decode_message_bundles
64660158
ns/iter (± 744780
)61807097
ns/iter (± 1004534
)1.05
mono_points_arrow/decode_total
236472215
ns/iter (± 2105614
)230549080
ns/iter (± 2653979
)1.03
batch_points_arrow/generate_message_bundles
331138
ns/iter (± 468
)319180
ns/iter (± 5103
)1.04
batch_points_arrow/generate_messages
6271
ns/iter (± 19
)6042
ns/iter (± 102
)1.04
batch_points_arrow/encode_log_msg
362172
ns/iter (± 1106
)354499
ns/iter (± 3378
)1.02
batch_points_arrow/encode_total
721118
ns/iter (± 5048
)704017
ns/iter (± 7150
)1.02
batch_points_arrow/decode_log_msg
346874
ns/iter (± 733
)341247
ns/iter (± 2541
)1.02
batch_points_arrow/decode_message_bundles
2133
ns/iter (± 4
)2064
ns/iter (± 34
)1.03
batch_points_arrow/decode_total
354284
ns/iter (± 2166
)346697
ns/iter (± 3436
)1.02
arrow_mono_points/insert
5988440665
ns/iter (± 20666088
)6000823830
ns/iter (± 28763766
)1.00
arrow_mono_points/query
1689782
ns/iter (± 24024
)1674978
ns/iter (± 21422
)1.01
arrow_batch_points/insert
2643441
ns/iter (± 59990
)2570384
ns/iter (± 21795
)1.03
arrow_batch_points/query
17380
ns/iter (± 64
)16896
ns/iter (± 266
)1.03
tuid/Tuid::random
34
ns/iter (± 0
)34
ns/iter (± 0
)1
This comment was automatically generated by workflow using github-action-benchmark.