-
Notifications
You must be signed in to change notification settings - Fork 451
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
Conversation
Web viewer failed to build. | Result | Commit | Link | Manifest | Note: This comment is updated whenever you push a commit. |
Latest documentation preview deployed successfully.
Note: This comment is updated whenever you push a commit. |
1bbaba0
to
5570f8b
Compare
26e7370
to
d68bb4b
Compare
send_columns
and update everything left
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12987658900 |
6970ec1
to
2549a8b
Compare
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.
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)) |
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.
Why not this here?
rr.send_columns("images", indexes=[], columns=rr.Image.columns(format=format_static)) | |
rr.log("images", rr.Image.update_fields(format=format_static), static=True) |
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.
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( |
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.
Surprising that this one is called columns_seconds
while the other two are called milliseconds
/nanoseconds
. Any reason for that?
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.
oversight -- i meant for all of them to be prefixed with columns_
Title.