Recording
rerun.recording
class Recording
A single Rerun recording.
This can be loaded from an RRD file using load_recording().
A recording is a collection of data that was logged to Rerun. This data is organized as a column for each index (timeline) and each entity/component pair that was logged.
You can examine the .schema() of the recording to see
what data is available.
def application_id()
The application ID of the recording.
def recording_id()
The recording ID of the recording.
def schema()
The schema describing all the columns available in the recording.
def view(*, index, contents, include_semantically_empty_columns=False, include_tombstone_columns=False)
deprecated
Deprecated
Recording.view() is deprecated. Use the catalog API instead. See: https://rerun.io/docs/reference/migration/migration-0-28#recordingview-and-local-dataframe-api-deprecated?speculative-link
Create a RecordingView of the recording according to a particular index and content specification.
The only type of index currently supported is the name of a timeline, or None (see below
for details).
The view will only contain a single row for each unique value of the index
that is associated with a component column that was included in the view.
Component columns that are not included via the view contents will not
impact the rows that make up the view. If the same entity / component pair
was logged to a given index multiple times, only the most recent row will be
included in the view, as determined by the row_id column. This will
generally be the last value logged, as row_ids are guaranteed to be
monotonically increasing when data is sent from a single process.
If None is passed as the index, the view will contain only static columns (among those
specified) and no index columns. It will also contain a single row per segment.
| PARAMETER | DESCRIPTION |
|---|---|
index
|
The index to use for the view. This is typically a timeline name. Use
TYPE:
|
contents
|
The content specification for the view. This can be a single string content-expression such as:
TYPE:
|
include_semantically_empty_columns
|
Whether to include columns that are semantically empty, by default Semantically empty columns are components that are
TYPE:
|
include_tombstone_columns
|
Whether to include tombstone columns, by default Tombstone columns are components used to represent clears. However, even without the clear tombstone columns, the view will still apply the clear semantics when resolving row contents.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
RecordingView
|
The view of the recording. |
Examples:
All the data in the recording on the timeline "my_index":
recording.view(index="my_index", contents="/**")
Just the Position3D components in the "points" entity:
recording.view(index="my_index", contents={"points": "Position3D"})
class RRDArchive
An archive loaded from an RRD.
RRD archives may include 1 or more recordings or blueprints.
def all_recordings()
All the recordings in the archive.
def num_recordings()
The number of recordings in the archive.
def load_archive(path_to_rrd)
Load a rerun archive from an RRD file.
| PARAMETER | DESCRIPTION |
|---|---|
path_to_rrd
|
The path to the file to load. |
| RETURNS | DESCRIPTION |
|---|---|
RRDArchive
|
The loaded archive. |