truncate_h5_traj¶
- jaxrens.io.restart_truncate.truncate_h5_traj(path, restart_iteration)[source]¶
Delete per-iteration groups (keyed by
str(iteration)) >= cut.The HDF5 trajectory writer stores each dead point as a group named after its iteration (
"{iteration}_{cull_rank}"whenn_cull > 1) and each walker snapshot as"snapshot_{iteration}". Both kinds are deleted at and after the cut: the resumed run writes them again withcreate_group, which fails on an existing name.