Repository navigation
Conversation
list_URIs inferred block numbers from the filename range (blocks_X-Y.h5 -> X..Y), so files that do not hold every block of their range were listed with non-existent blocks. It already opens every file, so it now reads the group names instead. thin_trajectory keeps every n-th block (plus the last one) of a saved trajectory and re-saves positions with the chain_delta_v1 encoding. Kept blocks keep their original numbers. Every written file is verified against the original blocks before anything is deleted. Works into a separate folder or in place (interrupted in-place runs are finished or restarted by the next call), and writes THINNED.json so repeated calls are no-ops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a tool to re-format an existing trajectory to use the new format (3x-4x space saving) as well as (optionally) thin it - e.g. keep every 5th or every 10th file. This is useful to archive old trajectories to be very small.