Skip to content

Commit d8a89a5

Browse files
committed
Expose load_episode
1 parent 811e48b commit d8a89a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/store/re_data_loader/src/loader_lerobot.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,12 @@ fn prepare_episode_chunks(
160160
store_ids
161161
}
162162

163-
fn load_episode(
163+
/// Loads a single episode from a `LeRobot` dataset and converts it into a collection of Rerun chunks.
164+
///
165+
/// This function processes an episode from the dataset by extracting the relevant data columns and
166+
/// converting them into appropriate Rerun data structures. It handles different types of data
167+
/// (videos, images, scalar values, etc.) based on their data type specifications in the dataset metadata.
168+
pub fn load_episode(
164169
dataset: &LeRobotDataset,
165170
episode: EpisodeIndex,
166171
) -> Result<Vec<Chunk>, DataLoaderError> {

0 commit comments

Comments
 (0)