Skip to content

Commit

Permalink
send_columns_v2 is now send_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jan 24, 2025
1 parent 93e6ad4 commit f9142ba
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/store/re_types/src/archetypes/asset_video.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/store/re_types/src/archetypes/points3d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/store/re_types/src/archetypes/scalar.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/top/re_sdk/src/recording_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ impl RecordingStream {
/// Note that this API ignores any stateful time set on the log stream via the
/// [`Self::set_timepoint`]/[`Self::set_time_nanos`]/etc. APIs.
/// Furthermore, this will _not_ inject the default timelines `log_tick` and `log_time` timeline columns.
pub fn send_columns_v2(
pub fn send_columns(
&self,
ent_path: impl Into<EntityPath>,
indexes: impl IntoIterator<Item = TimeColumn>,
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/image_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

// Send the ImageFormat and indicator once, as static.
let format = rerun::components::ImageFormat::rgb8([width as _, height as _]);
rec.send_columns_v2(
rec.send_columns(
"images",
[],
rerun::Image::update_fields()
Expand All @@ -34,7 +34,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let image_size_in_bytes = width * height * 3;
let timeline_values = rerun::TimeColumn::new_sequence("step", times.clone());
let buffer = images.into_raw_vec_and_offset().0;
rec.send_columns_v2(
rec.send_columns(
"images",
[timeline_values],
rerun::Image::update_fields()
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/archetypes/points3d_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.with_radii(radii)
.columns_of_unit_batches()?;

rec.send_columns_v2("points", [times], position.chain(color_and_radius))?;
rec.send_columns("points", [times], position.chain(color_and_radius))?;

Ok(())
}
2 changes: 1 addition & 1 deletion docs/snippets/all/archetypes/scalar_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let times = TimeColumn::new_sequence("step", 0..STEPS);
let scalars = (0..STEPS).map(|step| (step as f64 / 10.0).sin());

rec.send_columns_v2(
rec.send_columns(
"scalars",
[times],
rerun::Scalar::update_fields()
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/archetypes/video_auto_frames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> anyhow::Result<()> {
frame_timestamps_ns,
);

rec.send_columns_v2(
rec.send_columns(
"video",
[time_column],
rerun::VideoFrameReference::update_fields()
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/concepts/static/send_static.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rec.send_columns_v2("skybox", std::iter::empty(), generate_skybox_mesh())?;
rec.send_columns("skybox", std::iter::empty(), generate_skybox_mesh())?;
2 changes: 1 addition & 1 deletion docs/snippets/all/howto/any_batch_value_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
rerun::ComponentDescriptor::new("custom_component_multi"),
);

rec.send_columns_v2(
rec.send_columns(
"/",
[times],
[
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/howto/any_values_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
rerun::ComponentDescriptor::new("cos"),
);

rec.send_columns_v2(
rec.send_columns(
"/",
[times],
[
Expand Down
2 changes: 1 addition & 1 deletion tests/rust/plot_dashboard_stress/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fn run(rec: &rerun::RecordingStream, args: &Args) -> anyhow::Result<()> {
let temporal_batch_size = temporal_batch_size as usize;
let seconds = sim_times.iter().skip(offset).take(temporal_batch_size);
let values = series_values.iter().skip(offset).take(temporal_batch_size);
rec.send_columns_v2(
rec.send_columns(
path,
[rerun::TimeColumn::new_seconds("sim_time", seconds.copied())],
rerun::Scalar::update_fields()
Expand Down
2 changes: 1 addition & 1 deletion tests/rust/test_temporal_batch/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let timeline_values = TimeColumn::new_sequence("step", 0..64);
let scalar_data = (0..64).map(|step| (step as f64 / 10.0).sin());

rec.send_columns_v2(
rec.send_columns(
"scalar",
[timeline_values],
rerun::Scalar::update_fields()
Expand Down

0 comments on commit f9142ba

Please sign in to comment.