Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
|
Let me know if you have any thoughts on this one. |
|
This PR fixes #1049, so it will close that issue. Authored by Claude |
Merging this PR will regress 6 benchmarks2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance ChangesTip Investigate this regression by commenting Comparing Footnotes
|
padix-key
left a comment
There was a problem hiding this comment.
Thanks for the fix, I left only a nit below.
| def test_duplicate_atoms_check(duplicate_sample_array): | ||
| discon = struc.check_duplicate_atoms(duplicate_sample_array) | ||
| assert discon.tolist() == [42, 234] | ||
|
|
There was a problem hiding this comment.
Could you add a docstring to these two tests explaining what the test checks and how it is doing it?
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
|
Thanks! I've done this. |
check_in_box()returns indices of atoms inside the periodic box although its API promises indices outside it.With a box of side 10 and atoms at x=1, x=-1 and x=11, it returns [0] instead of [1, 2].
The patch inverts the selection and documents the upper boundary used by the box convention.
Regression tests cover orthogonal and triclinic boxes, inside and outside selections, empty selections, and a missing box.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N