Skip to content

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

Merged
merged 61 commits into from
Mar 27, 2025

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Mar 20, 2025

Related

What

  • 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 a Scalar::one constructor for Rust.

On the flip side it's much nicer now to create columns of Scalars since with_many_scalar is no longer a thing, instead you can just create Scalar(..) with an array.


@Wumpf Wumpf added include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages 📈 plot Plots, charts, graphs, timeseries, … labels Mar 20, 2025
Copy link

github-actions bot commented Mar 20, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
ae59cdf https://rerun.io/viewer/pr/9338 +nightly +main

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

Copy link

github-actions bot commented Mar 20, 2025

Latest documentation preview deployed successfully.

Result Commit Link
ae59cdf https://landing-kf5kf1eod-rerun.vercel.app/docs

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

Base automatically changed from andreas/multi-scalar-points to main March 21, 2025 08:12
@Wumpf Wumpf changed the title replace panic with proper error messages for some codegen paths Deprecate SeriesLine/SeriesPoint/Scalar in favor of SeriesLines/SeriesPoints/Scalars Mar 21, 2025
@Wumpf Wumpf force-pushed the andreas/pluralize-series-types branch from d370eb9 to e2c09b9 Compare March 21, 2025 09:30
Comment on lines +12 to +13
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)
Copy link
Member Author

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

@Wumpf
Copy link
Member Author

Wumpf commented Mar 21, 2025

@rerun-bot full-check

@Wumpf Wumpf marked this pull request as ready for review March 21, 2025 11:23
Copy link

@Wumpf
Copy link
Member Author

Wumpf commented Mar 21, 2025

full check ci fails with known issue we have on main right now.

@emilk emilk added this to the 0.23.0 milestone Mar 25, 2025
@emilk
Copy link
Member

emilk commented Mar 25, 2025

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 :)

table Scalar (
"attr.rerun.deprecated": "Use `Scalars` instead.",
Copy link
Member

@emilk emilk Mar 25, 2025

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").

@emilk
Copy link
Member

emilk commented Mar 26, 2025

@rerun-bot full-check

Copy link

@emilk
Copy link
Member

emilk commented Mar 26, 2025

@rerun-bot full-check

Copy link

@emilk
Copy link
Member

emilk commented Mar 27, 2025

@rerun-bot full-check

Copy link

@emilk
Copy link
Member

emilk commented Mar 27, 2025

I'm pulling out some commits into a new PR to make both pieces easier to review:

emilk added a commit that referenced this pull request Mar 27, 2025
### Related
* Select commits pulled out of
#9338

### What
Various improvements related to codegen, testign, and deprecation

---------

Co-authored-by: Andreas Reich <[email protected]>
@emilk
Copy link
Member

emilk commented Mar 27, 2025

@rerun-bot full-check

Copy link

@emilk
Copy link
Member

emilk commented Mar 27, 2025

@rerun-bot full-check

Copy link

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

@emilk
Copy link
Member

emilk commented Mar 27, 2025

OMG IT'S GREEN I'M MERGING QUCKLY

@emilk emilk merged commit c4eb639 into main Mar 27, 2025
80 of 81 checks passed
@emilk emilk deleted the andreas/pluralize-series-types branch March 27, 2025 11:58
emilk added a commit that referenced this pull request Mar 31, 2025
* Introduced in #9338

`one` can be confused for `1.0`
@emilk emilk mentioned this pull request Apr 11, 2025
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages 📈 plot Plots, charts, graphs, timeseries, …
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pluralize SeriesLine/SeriesPoint
3 participants