-
Notifications
You must be signed in to change notification settings - Fork 373
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
face_tracking
example fails with new AnnotationContext
implementation
#2924
Comments
This example is likely broken as well: https://www.rerun.io/docs/reference/data_types/annotation_context#connections-example |
why isn't mypy catching this? |
Custom init overrides are untyped unfortunately. That's one of the major eyesore of the codegen's python SDK in its current state. |
I believe this was introduced in https://github.com/rerun-io/rerun/pull/2895/files#diff-e4f8d37313c7297c2faac15acce4fa15501d41993f79b717e817213f8c20764eR30
#[derive(Clone, Debug, Default, Eq, PartialEq)]
pub struct AnnotationInfo {
/// `ClassId` or `KeypointId` to which this annotation info belongs.
pub id: u16,
/// The label that will be shown in the UI.
pub label: Option<crate::datatypes::Label>,
/// The color that will be applied to the annotated entity.
pub color: Option<crate::datatypes::Color>,
} Our new code-gened Does it make sense to have Ideally I would like to give Is |
* Closes #2924 This took me over an hour to figure out 😭
* Closes #2924 Two changes: * You can now easily specify the `info` without having to also specify label and color, using `info=0`. * The default info is one with `id=0`, matching 0.7.0 behavior and how `log_points` work (This took me over an hour to figure out 😭) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3017) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3017) - [Docs preview](https://rerun.io/preview/pr%3Aemilk%2Ffix-annotation-context-default/docs) - [Examples preview](https://rerun.io/preview/pr%3Aemilk%2Ffix-annotation-context-default/examples)
This is not a problem on 0.8.0, so no need for a fix for 0.8.1 |
Describe the bug
It looks like
rr.ClassDescription()
now requires and argument that wasn't formerly required.The text was updated successfully, but these errors were encountered: