Columnar API
rerun
class TimeColumn
Bases: TimeColumnLike
A column of index (time) values.
Columnar equivalent to rerun.set_time.
def __init__(timeline, *, sequence=None, duration=None, timestamp=None)
Create a column of index values.
There is no requirement of monotonicity. You can move the time backwards if you like.
You are expected to set exactly ONE of the arguments sequence, duration, or timestamp.
You may NOT change the type of a timeline, so if you use duration for a specific timeline,
you must only use duration for that timeline going forward.
| PARAMETER | DESCRIPTION |
|---|---|
timeline
|
The name of the timeline.
TYPE:
|
sequence
|
Used for sequential indices, like |
duration
|
Used for relative times, like
TYPE:
|
timestamp
|
Used for absolute time indices, like
TYPE:
|
def timeline_name()
Returns the name of the timeline.
def send_columns(entity_path, indexes, columns, *, recording=None, strict=None)
Send columnar data to Rerun.
Unlike the regular log API, which is row-oriented, this API lets you submit the data
in a columnar form. Each TimeColumnLike and ComponentColumn object represents a column
of data that will be sent to Rerun. The lengths of all these columns must match, and all
data that shares the same index across the different columns will act as a single logical row,
equivalent to a single call to rr.log().
Note that this API ignores any stateful time set on the log stream via rerun.set_time.
Furthermore, this will not inject the default timelines log_tick and log_time timeline columns.
| PARAMETER | DESCRIPTION |
|---|---|
entity_path
|
Path to the entity in the space hierarchy. See https://www.rerun.io/docs/concepts/entity-path for more on entity paths.
TYPE:
|
indexes
|
The time values of this batch of data. Each
TYPE:
|
columns
|
The columns of components to log. Each object represents a single column of data. In order to send multiple components per time value, explicitly create a
TYPE:
|
recording
|
Specifies the
TYPE:
|
strict
|
If True, raise exceptions on non-loggable data.
If False, warn on non-loggable data.
If None, use the global default from
TYPE:
|
def send_record_batch(batch, recording=None)
Coerce a single pyarrow RecordBatch to Rerun structure.
def send_dataframe(df, recording=None)
Coerce a pyarrow RecordBatchReader or Table to Rerun structure.