From f9142ba91981165687a7ca7caf812f4a85862ea1 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Fri, 24 Jan 2025 15:10:31 +0100 Subject: [PATCH] send_columns_v2 is now send_columns --- crates/store/re_types/src/archetypes/asset_video.rs | 2 +- crates/store/re_types/src/archetypes/points3d.rs | 2 +- crates/store/re_types/src/archetypes/scalar.rs | 2 +- crates/store/re_types/src/archetypes/video_frame_reference.rs | 2 +- crates/top/re_sdk/src/recording_stream.rs | 2 +- docs/snippets/all/archetypes/image_send_columns.rs | 4 ++-- docs/snippets/all/archetypes/points3d_send_columns.rs | 2 +- docs/snippets/all/archetypes/scalar_send_columns.rs | 2 +- docs/snippets/all/archetypes/video_auto_frames.rs | 2 +- docs/snippets/all/concepts/static/send_static.rs | 2 +- docs/snippets/all/howto/any_batch_value_send_columns.rs | 2 +- docs/snippets/all/howto/any_values_send_columns.rs | 2 +- tests/rust/plot_dashboard_stress/src/main.rs | 2 +- tests/rust/test_temporal_batch/src/main.rs | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/crates/store/re_types/src/archetypes/asset_video.rs b/crates/store/re_types/src/archetypes/asset_video.rs index 76db5a7d320f..af28237a5663 100644 --- a/crates/store/re_types/src/archetypes/asset_video.rs +++ b/crates/store/re_types/src/archetypes/asset_video.rs @@ -60,7 +60,7 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// frame_timestamps_ns, /// ); /// -/// rec.send_columns_v2( +/// rec.send_columns( /// "video", /// [time_column], /// rerun::VideoFrameReference::update_fields() diff --git a/crates/store/re_types/src/archetypes/points3d.rs b/crates/store/re_types/src/archetypes/points3d.rs index f69d4dca5cd7..57f9fd59cb7a 100644 --- a/crates/store/re_types/src/archetypes/points3d.rs +++ b/crates/store/re_types/src/archetypes/points3d.rs @@ -127,7 +127,7 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// .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(()) /// } diff --git a/crates/store/re_types/src/archetypes/scalar.rs b/crates/store/re_types/src/archetypes/scalar.rs index 352e73ba8dd1..cbcb1ad1f00d 100644 --- a/crates/store/re_types/src/archetypes/scalar.rs +++ b/crates/store/re_types/src/archetypes/scalar.rs @@ -66,7 +66,7 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// 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() diff --git a/crates/store/re_types/src/archetypes/video_frame_reference.rs b/crates/store/re_types/src/archetypes/video_frame_reference.rs index dac058ecd5be..ba333b4b89d9 100644 --- a/crates/store/re_types/src/archetypes/video_frame_reference.rs +++ b/crates/store/re_types/src/archetypes/video_frame_reference.rs @@ -58,7 +58,7 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// frame_timestamps_ns, /// ); /// -/// rec.send_columns_v2( +/// rec.send_columns( /// "video", /// [time_column], /// rerun::VideoFrameReference::update_fields() diff --git a/crates/top/re_sdk/src/recording_stream.rs b/crates/top/re_sdk/src/recording_stream.rs index ac52ce954246..1b63d51d6e82 100644 --- a/crates/top/re_sdk/src/recording_stream.rs +++ b/crates/top/re_sdk/src/recording_stream.rs @@ -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, indexes: impl IntoIterator, diff --git a/docs/snippets/all/archetypes/image_send_columns.rs b/docs/snippets/all/archetypes/image_send_columns.rs index 63b8d63fbe6f..a157ced26562 100644 --- a/docs/snippets/all/archetypes/image_send_columns.rs +++ b/docs/snippets/all/archetypes/image_send_columns.rs @@ -22,7 +22,7 @@ fn main() -> Result<(), Box> { // 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() @@ -34,7 +34,7 @@ fn main() -> Result<(), Box> { 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() diff --git a/docs/snippets/all/archetypes/points3d_send_columns.rs b/docs/snippets/all/archetypes/points3d_send_columns.rs index c842ee3bd45d..3e7a1521bc9e 100644 --- a/docs/snippets/all/archetypes/points3d_send_columns.rs +++ b/docs/snippets/all/archetypes/points3d_send_columns.rs @@ -30,7 +30,7 @@ fn main() -> Result<(), Box> { .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(()) } diff --git a/docs/snippets/all/archetypes/scalar_send_columns.rs b/docs/snippets/all/archetypes/scalar_send_columns.rs index 1e830e7d2d9c..1898f8b33fac 100644 --- a/docs/snippets/all/archetypes/scalar_send_columns.rs +++ b/docs/snippets/all/archetypes/scalar_send_columns.rs @@ -10,7 +10,7 @@ fn main() -> Result<(), Box> { 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() diff --git a/docs/snippets/all/archetypes/video_auto_frames.rs b/docs/snippets/all/archetypes/video_auto_frames.rs index eb060a76d39e..35867e80f93b 100644 --- a/docs/snippets/all/archetypes/video_auto_frames.rs +++ b/docs/snippets/all/archetypes/video_auto_frames.rs @@ -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() diff --git a/docs/snippets/all/concepts/static/send_static.rs b/docs/snippets/all/concepts/static/send_static.rs index 74a785e56062..652d60dd9cac 100644 --- a/docs/snippets/all/concepts/static/send_static.rs +++ b/docs/snippets/all/concepts/static/send_static.rs @@ -1 +1 @@ -rec.send_columns_v2("skybox", std::iter::empty(), generate_skybox_mesh())?; +rec.send_columns("skybox", std::iter::empty(), generate_skybox_mesh())?; diff --git a/docs/snippets/all/howto/any_batch_value_send_columns.rs b/docs/snippets/all/howto/any_batch_value_send_columns.rs index 7bf296208345..51f53353fe6e 100644 --- a/docs/snippets/all/howto/any_batch_value_send_columns.rs +++ b/docs/snippets/all/howto/any_batch_value_send_columns.rs @@ -28,7 +28,7 @@ fn main() -> Result<(), Box> { rerun::ComponentDescriptor::new("custom_component_multi"), ); - rec.send_columns_v2( + rec.send_columns( "/", [times], [ diff --git a/docs/snippets/all/howto/any_values_send_columns.rs b/docs/snippets/all/howto/any_values_send_columns.rs index f824409081e1..22c8db3794e1 100644 --- a/docs/snippets/all/howto/any_values_send_columns.rs +++ b/docs/snippets/all/howto/any_values_send_columns.rs @@ -28,7 +28,7 @@ fn main() -> Result<(), Box> { rerun::ComponentDescriptor::new("cos"), ); - rec.send_columns_v2( + rec.send_columns( "/", [times], [ diff --git a/tests/rust/plot_dashboard_stress/src/main.rs b/tests/rust/plot_dashboard_stress/src/main.rs index 9015b0e49364..6cee6c8abcb0 100644 --- a/tests/rust/plot_dashboard_stress/src/main.rs +++ b/tests/rust/plot_dashboard_stress/src/main.rs @@ -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() diff --git a/tests/rust/test_temporal_batch/src/main.rs b/tests/rust/test_temporal_batch/src/main.rs index 2f56ec0b0d06..513f657c0897 100644 --- a/tests/rust/test_temporal_batch/src/main.rs +++ b/tests/rust/test_temporal_batch/src/main.rs @@ -8,7 +8,7 @@ fn main() -> Result<(), Box> { 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()