Skip to content

Merge

merge_simulation_files combines multiple scene JSON files that share the same bodies/terrain into one scene with extra batches, resampling every file but the first onto the first file's timeline by nearest timestamp. See Comparing multiple runs for the CLI-facing version of this.

simview.merge.merge_simulation_files

merge_simulation_files(paths: Sequence[str | Path]) -> dict

Load and merge paths into a single {"model": ..., "states": ...} dict where each file's batches are concatenated into the output's batch dimension.