-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to BrillouinSpglibExt as suggested in #26 #27
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## master #27 +/- ##
==========================================
- Coverage 85.95% 85.65% -0.30%
==========================================
Files 14 14
Lines 968 969 +1
==========================================
- Hits 832 830 -2
- Misses 136 139 +3
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Thanks! This should probably also bump the version of Spglib in Project.toml: Line 35 in 1aa1e32
|
For sure ! Thanks @thchr |
These failures look like they are due to changes in the ordering of matrices (rows versus columns etc.) @singularitti any idea which of your changes could cause this ? |
I probably transposed some matrices to align with Spglib's mathematical convention. I will have a look at these errors. |
Got it. It actually was that @singularitti plus a small inconsistency in the code. |
Alright, I've reviewed your code and compared it to my convention. It appears that Michael's fix is indeed correct. In Spglib's convention, when you transform the reference axes, you apply the transformation matrix by multiplying it on the right, denoted as However, when you rotate the axes during idealization to get I realized that in versions prior to v0.8, I was using the inconsistent convention, which resulted in the I'm also checking if Apart from that, I have conducted extensive tests since v0.8, and it seems that the current convention is indeed the correct one. I have a couple of suggestions:
Feel free to let me know your thoughts or if you have any further questions! |
This seems to work now, at least on the latest Julia version. I don't quite understand the errors on Julia master, but I suppose that could well be a master-issue rather than an issue related to this PR. Let me know when you are happy with the PR @mfherbst and I'll merge. |
And thanks for double checking everything @singularitti: really nice to have it settled and carefully checked. |
Thanks for the comments @singularitti. I changed the code according to your second suggestion. I don't think the first is worth the additional characters 😄: In Julia the tick is quite wide-spread to transpose a matrix and the comment should make clear why. |
Good to go from my end now @thchr ! |
Brilliant; many thanks! |
No description provided.