-
Notifications
You must be signed in to change notification settings - Fork 390
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
New TextLog
archetype
#3261
New TextLog
archetype
#3261
Conversation
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 but I don't understand the change in python to string literals everywhere - there is documentation and attributes set on TextLogLevelType
but then they aren't used anywhere?
@@ -39,5 +39,4 @@ generic container for arrays of data. Images are restricted to tensors of rank 2 | |||
|
|||
## Other **Archetypes** | |||
* [Scalar](data_types/scalar.md): a single scalar / metric value. Can be viewed in the `TimeSeries` space view. | |||
* [TextEntry](data_types/text_entry.md): captures text data. Can be viewed in the `Text` space view. |
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.
bit unfortunate to throw it away entirely and thus any mention of the ability to log text.
But I suppose putting up the new doc pages with all the examples and generated images is orthogonal
@@ -79,21 +79,21 @@ def read_mesh(path: Path) -> Trimesh: | |||
return cast(Trimesh, mesh) | |||
|
|||
|
|||
@log_timing_decorator("global/voxel_sdf", rr.LogLevel.DEBUG) # type: ignore[misc] | |||
@log_timing_decorator("global/voxel_sdf", "DEBUG") # type: ignore[misc] |
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.
here and in all other python example code: Why not use constants for the level strings?
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.
Truth? Because I am fed up with Python and so I threw my hands in the air and said "what's the difference - the errors are only caught at runtime anyway - at least a string literal is short"
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.
😢
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.
…also I thought I hade opened this PR in draft mode 😅
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 also don't know how to do it. rr2.components.TextLogLevelType.INFO
doesn't work: module 'rerun.components' has no attribute 'TextLogLevelType'
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'll fix it in a later PR
# Conflicts: # crates/re_types/source_hash.txt
What
Text
migration to archetypes #2793Adds
TextLogLevel
TextLog
Checklist