-
Notifications
You must be signed in to change notification settings - Fork 451
Deprecate SeriesLine
/SeriesPoint
/Scalar
in favor of SeriesLines
/SeriesPoints
/Scalars
#9338
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 built successfully. If applicable, you should also test it:
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. |
SeriesLine
/SeriesPoint
/Scalar
in favor of SeriesLines
/SeriesPoints
/Scalars
… showcase this by now
d370eb9
to
e2c09b9
Compare
rr.log("trig/sin", rr.SeriesLines(colors=[255, 0, 0], names="sin(0.01t)", widths=2), static=True) | ||
rr.log("trig/cos", rr.SeriesLines(colors=[0, 255, 0], names="cos(0.01t)", widths=4), 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.
wondering whether I should put those in the same entity now for illustration 🤔
practically though separate entities make more sense here
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/13990660968 |
full check ci fails with known issue we have on |
This makes me realize that the rrd backwards compatibility check should fail for deprecated archetypes/components (as they should be converted on ingestion). I added it as a TODO for myself on #9110. I'll hopefully get than done and merged before this PR, and then add a migration path to this PR :) |
crates/viewer/re_view_time_series/tests/support_for_deprecated_types.rs
Outdated
Show resolved
Hide resolved
table Scalar ( | ||
"attr.rerun.deprecated": "Use `Scalars` instead.", |
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.
I think we should mandate that we include when this was deprecated ("Deprecated since Rerun 0.23").
crates/viewer/re_view_time_series/src/line_visualizer_system.rs
Outdated
Show resolved
Hide resolved
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14090125166 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14090237845 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14100934943 |
I'm pulling out some commits into a new PR to make both pieces easier to review: |
### Related * Select commits pulled out of #9338 ### What Various improvements related to codegen, testign, and deprecation --------- Co-authored-by: Andreas Reich <[email protected]>
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14102539696 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14103733173 |
OMG IT'S GREEN I'M MERGING QUCKLY |
* Introduced in #9338 `one` can be confused for `1.0`
Related
SeriesLine
/SeriesPoint
#9022What
SeriesLine
->SeriesLines
SeriesPoint
->SeriesPoints
Scalar
->Scalars
The old types are still around, just deprecated.
There's a unit test ensuring that they still work just the same (visualizers will still activate automatically!)EDIT by @emilk: the old types are migrated (renamed) during loading by
re_sorbet
!The change is fairly straight forward in Python & C++. In Rust there's some ergonomic loss since arrays need to be passed more often now - in particular annoying on
Scalars
for single scalars. For convenience @emilk added aScalar::one
constructor for Rust.On the flip side it's much nicer now to create columns of
Scalars
sincewith_many_scalar
is no longer a thing, instead you can just createScalar(..)
with an array.