Skip to content

Add XDATCAR trajectory selection - #128

Merged
Tingliangstu merged 1 commit into
mainfrom
codex/xdatcar-selection
Jul 9, 2026
Merged

Tingliangstu merged 1 commit into
mainfrom
codex/xdatcar-selection

Conversation

@Tingliangstu

Copy link
Copy Markdown
Collaborator

Summary

Adds direct selection support for existing VASP AIMD XDATCAR trajectories.

  • Allows sampling.selection.trajectory_format, including vasp-xdatcar, so XDATCAR content can be read even when the filename is nonstandard.
  • Defaults existing AIMD or no-engine FPS selection to the built-in simple geometry descriptor.
  • Adds count-based evenly spaced sampling with sampling.selection.count, alongside fixed-stride interval sampling.
  • Updates command docs, workflow docs, examples, FPS theory notes, and README scope.

Impact

Users can thin AIMD-generated XDATCAR files directly with either farthest point sampling or evenly spaced sampling before SCF setup, without first converting the trajectory manually.

Validation

  • python -m ruff check .
  • python -m pytest
  • Verified the attached XDATCAR text with trajectory_format: vasp-xdatcar, reading 2 frames with 129 atoms per frame and writing selected.xyz plus manifest.jsonl.

@Tingliangstu
Tingliangstu marked this pull request as ready for review July 9, 2026 11:39
@Tingliangstu
Tingliangstu merged commit 63ac4a9 into main Jul 9, 2026
2 checks passed
@Tingliangstu
Tingliangstu deleted the codex/xdatcar-selection branch July 9, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant