-
Notifications
You must be signed in to change notification settings - Fork 451
Python/CI: Raise exception on warning, e.g. call of @deprecated #9384
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
Latest documentation preview deployed successfully.
Note: This comment is updated whenever you push a commit. |
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
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.
LGTM so long as CI all passes
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14083097381 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14083660608 |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/14085081269 |
…s`/`SeriesPoints`/`Scalars` (#9338) ### Related * Fixes #9022 ### 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. --- * [x] migration guide * [x] describe what's going on here * [x] Merge #9384 * [x] Update references to deprecated archetypes from doclinks in fbs files * [x] Remove all uses to the old archetypes * [x] Remove all references to the old names from everywhere (e.g. all docs) * [x] Full check --------- Co-authored-by: Emil Ernerfeldt <[email protected]> Co-authored-by: Jochen Görtler <[email protected]>
Related
SeriesLine
/SeriesPoint
/Scalar
in favor ofSeriesLines
/SeriesPoints
/Scalars
#9338What
We do not want to call deprecated functions from our examples and snippets (it sets a bad example!).
Unfortunately there is nothing stopping us from doing so right now.
Until this PR.
With
PYTHONWARNINGS="error"
any Pythonwarning
results in an exception, which should fail the example/snippet.TODO
@rerun-bot full-check