Skip to content

fix: lower default minimum unit cell length in quick_index to 2.5 Å - #90

Open
vincefn wants to merge 2 commits into
mainfrom
vincefn-solid-eureka
Open

fix: lower default minimum unit cell length in quick_index to 2.5 Å#90
vincefn wants to merge 2 commits into
mainfrom
vincefn-solid-eureka

Conversation

@vincefn

@vincefn vincefn commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

What problem does this PR address?

Closes #47.

quick_index() had the minimum unit cell length hardcoded to 3 Å, which prevents correct indexing of compact structures (e.g. α-Fe a≈2.87 Å, B a≈2.9 Å, ZRNCl). According to the COD there are ~430 orthorhombic structures with a between 2.5–3 Å.

The same default has been fixed in the upstream ObjCryst C++ library (vincefn/objcryst#80, mLengthMin 4 Å → 2.5 Å).

What should the reviewer(s) do?

Review the change and merge.

  • This PR introduces a public-facing change (API: new length_min parameter in quick_index()).

vincefn and others added 2 commits July 28, 2026 12:28
Expose length_min as a parameter of quick_index() (default 2.5 Å,
previously hardcoded to 3 Å). This matches the upstream ObjCryst fix
(vincefn/objcryst#80) and allows correct indexing of compact structures
such as α-Fe, B, or ZRNCl.

Closes #47

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
vincefn added a commit that referenced this pull request Jul 28, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vincefn
vincefn force-pushed the vincefn-solid-eureka branch from 63a179c to c6ec555 Compare July 28, 2026 10:33
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.

Indexing: start search from smaller unit cell length

1 participant