Skip to content
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

New partial updates logging APIs: Python #8582

Closed
teh-cmc opened this issue Jan 6, 2025 · 0 comments · Fixed by #8671
Closed

New partial updates logging APIs: Python #8582

teh-cmc opened this issue Jan 6, 2025 · 0 comments · Fixed by #8671
Assignees
Labels
enhancement New feature or request 🐍 Python API Python logging API

Comments

@teh-cmc
Copy link
Member

teh-cmc commented Jan 6, 2025

Something like this:

rr.set_time_sequence("frame", 42)
rr.log("points", rr.Points3D([[0, 0, 0], [1, 1, 1]], colors=[255, 0, 0]))

rr.set_time_sequence("frame", 43)
rr.log("points", [rr.Points3D.components(colors=[0, 0, 255])]) # gets properly tagged
@teh-cmc teh-cmc added enhancement New feature or request 🐍 Python API Python logging API labels Jan 6, 2025
teh-cmc added a commit that referenced this issue Jan 13, 2025
…8649)

This adds a partial update example for `Points3D`, in all languages,
using both the legacy and new APIs (if they already exist).

This acts as a before/after comparison, a piece of documentation and a
way to make sure that the legacy and new APIs behave similarly.

* DNM: requires #8648 
* Part of #8583 
* Part of #8581 
* Part of #8582
@teh-cmc teh-cmc self-assigned this Jan 14, 2025
teh-cmc added a commit that referenced this issue Jan 15, 2025
There really is not much to be said that wouldn't be made clearer by
just looking at the code.

Specifically:
* Look at the codegen changes.
* Now look at the changes to one of the generated archetypes (probably
`Transform3D`).
* Now look especially at the changes to `transform3d_ext`. That one's
important.
* Now look at how the different "partial updates" snippets evolved.

Overall I hate everything here, literally every single bit -- but that's
the best I managed to get out of the status quo without ridiculous
amounts of efforts.

* DNM: requires #8690 
* Closes #8582

---------

Co-authored-by: Antoine Beyeler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🐍 Python API Python logging API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant