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 #8580

Open
teh-cmc opened this issue Jan 6, 2025 · 2 comments
Open

New partial updates logging APIs #8580

teh-cmc opened this issue Jan 6, 2025 · 2 comments
Labels
enhancement New feature or request 🪵 Log & send APIs Affects the user-facing API for all languages 🎄 tracking issue issue that tracks a bunch of subissues

Comments

@teh-cmc
Copy link
Member

teh-cmc commented Jan 6, 2025

We want to offer newer & nicer ergonomic partial update APIs on the logging side (Python, Rust, C++), 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

We want this for two reasons:

  • Finally make partial updates ergonomic.
  • Unblock tagged components.

Complete rationale can be found in #3381 (comment).

@teh-cmc teh-cmc added enhancement New feature or request 🎄 tracking issue issue that tracks a bunch of subissues 🪵 Log & send APIs Affects the user-facing API for all languages labels Jan 6, 2025
@nikolausWest
Copy link
Member

I'd love it if the last line could be

rr.log("points",` rr.Points3D.components(colors=[0, 0, 255])) # gets properly tagged

instead of

rr.log("points",` [rr.Points3D.components(colors=[0, 0, 255])]) # gets properly tagged

(i.e. don't require wrapping in a list)

@nikolausWest
Copy link
Member

I think we also talked about going with .fields() instead of .components() but I don't remember the conclusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🪵 Log & send APIs Affects the user-facing API for all languages 🎄 tracking issue issue that tracks a bunch of subissues
Projects
None yet
Development

No branches or pull requests

2 participants