Skip to content

fix: sort XYZ files in natural numerical order when reading directory - #1

Closed
avnoordenne wants to merge 1 commit into
GloriusGroup:masterfrom
avnoordenne:fixed-xyz-reordering
Closed

fix: sort XYZ files in natural numerical order when reading directory#1
avnoordenne wants to merge 1 commit into
GloriusGroup:masterfrom
avnoordenne:fixed-xyz-reordering

Conversation

@avnoordenne

Copy link
Copy Markdown

glob returns files in OS-dependent order, causing mol_2.xyz to sometimes be read after mol_10.xyz. Add natural sort by default so files are read in the expected numerical sequence, with an optional sort parameter to disable or customize this behavior.

glob returns files in OS-dependent order, causing mol_2.xyz to
sometimes be read after mol_10.xyz. Add natural sort by default
so files are read in the expected numerical sequence, with an
optional `sort` parameter to disable or customize this behavior.
@niklashoelter

Copy link
Copy Markdown
Member

Thanks @avnoordenne! This repo is a read-only mirror of the source repo (niklashoelter/gpuma), so the fix needs to land there to survive the next mirror sync.

I've migrated your change to the source repo with your authorship preserved, and it's now merged into master: niklashoelter/gpuma#28

Closing this one in favour of that — it'll flow back here on the next mirror update.

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.

2 participants