Repository navigation
Add extended XYZ auxiliary reader - #27
Open
PicoCentauri wants to merge 7 commits into
Open
PicoCentauri wants to merge 7 commits into
PicoCentauri wants to merge 7 commits into
Conversation
The extxyz parser is reimplemented instead of depending on ASE; the tests check it against ASE, which is only a test dependency. Readers of the same unchanged file share one parse, because attach_auxiliary creates a new reader for every attached term and parsing a large i-PI file takes seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Importing spectrumkit registers the EXTXYZ and XYZ auxiliary formats, so add_auxiliary accepts these files by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Universe already holds the atom names and count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps the reader as close as possible to the upstream auxiliary readers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shape of each data_dict array already tells per-atom from per-frame terms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"aux" is a reserved device name on Windows, so the checkout failed there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Adds
XYZReader, an MDAnalysis compatible auxiliary reader for ASE/i-PI style extended XYZ files. It attaches all data in the XYZ that can't read by the default XYZ reader from MDAnalysis. The reader handles per-atom data (e.g. Born effective charges, forces) and per-frame data (e.g. polarization, polarizability, energy) to an existing Universe.The workflow follows the MDA style:
In summary the PR does:
I checked on an i-PI water trimer run: the BEC current J = Σ Z·v from the attached data matches the previous ASE-based route bitwise.
The idea is that this may goes upstream to MDAnalysis later (MDAnalysis/auxiliary/XYZ.py), after we tested it and are happy.
📚 Documentation preview 📚: https://spectrumkit--27.org.readthedocs.build/en/27/