Skip to content

Python: remove legacy send_columns and update everything left #8799

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 7 commits into from
Jan 28, 2025

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Jan 24, 2025

Title.

Copy link

github-actions bot commented Jan 24, 2025

Web viewer failed to build.

| Result | Commit | Link | Manifest |
| ------ | ------- | ----- |
| ❌ | | https://rerun.io/viewer/pr/8799 | +nightly +main |

Note: This comment is updated whenever you push a commit.

Copy link

github-actions bot commented Jan 24, 2025

Latest documentation preview deployed successfully.

Result Commit Link
b9f4b8a https://landing-nr4xn2yr0-rerun.vercel.app/docs

Note: This comment is updated whenever you push a commit.

@teh-cmc teh-cmc force-pushed the cmc/tagged_columnar_apis_python branch 4 times, most recently from 1bbaba0 to 5570f8b Compare January 24, 2025 16:58
Base automatically changed from cmc/tagged_columnar_apis_python to main January 27, 2025 09:35
@teh-cmc teh-cmc force-pushed the cmc/python_columnar_cleanup branch 2 times, most recently from 26e7370 to d68bb4b Compare January 27, 2025 10:11
@teh-cmc teh-cmc changed the title Python: update everything to the new APIs (partial & columnar) Python: remove legacy send_columns and update everything left Jan 27, 2025
@teh-cmc teh-cmc marked this pull request as ready for review January 27, 2025 11:09
@teh-cmc
Copy link
Member Author

teh-cmc commented Jan 27, 2025

@rerun-bot full-check

Copy link

Started a full build: https://github.com/rerun-io/rerun/actions/runs/12987658900

@teh-cmc teh-cmc force-pushed the cmc/python_columnar_cleanup branch from 6970ec1 to 2549a8b Compare January 27, 2025 12:04
@abey79 abey79 self-requested a review January 28, 2025 08:04
Copy link
Member

@abey79 abey79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@@ -17,16 +17,16 @@

# Log the ImageFormat and indicator once, as static.
format_static = rr.components.ImageFormat(width=width, height=height, color_model="RGB", channel_datatype="U8")
rr.log("images", [format_static, rr.Image.indicator()], static=True)
rr.send_columns("images", indexes=[], columns=rr.Image.columns(format=format_static))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not this here?

Suggested change
rr.send_columns("images", indexes=[], columns=rr.Image.columns(format=format_static))
rr.log("images", rr.Image.update_fields(format=format_static), static=True)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we can re-enable comparisons of the snippets between the 3 languages (mixing logging and sending has a non-deterministic order).

@@ -67,3 +71,60 @@ def __init__(
return

self.__attrs_clear__()

@classmethod
def columns_seconds(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprising that this one is called columns_seconds while the other two are called milliseconds/nanoseconds. Any reason for that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oversight -- i meant for all of them to be prefixed with columns_

@teh-cmc teh-cmc merged commit 7293f69 into main Jan 28, 2025
27 of 32 checks passed
@teh-cmc teh-cmc deleted the cmc/python_columnar_cleanup branch January 28, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants