-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fixed Failing Abinit tests #1106
Conversation
["The variable 'tsmear' is different in the two files:\n - this file: '0.0036749322175665 Ha'\n - other file: '0.0036749322175655 Ha'"]
5ae5d16
to
8ca3834
Compare
@jmmshn Thank you! My only concern is that fractional coordinates are not checked anymore. Maybe, you can take a look at @VicTrqt solution here and make the structure test stricter: https://github.com/VicTrqt/atomate2/blob/784709d95db0515fc63dce6a2dfa4bab1bb81da9/tests/abinit/conftest.py#L395 |
@JaGeo , my thinking (feel free to push back) is that see any direct usage of If we want to "fuzzy" check structure we need some kind of actual fingerprinting --- short of that I think composition + volume will have to be good enough for now. |
@jmmshn I understand. However, I think this would leave the structure generation untested which I find dangerous. I think we already have a solution for the problem here. atomate2/src/atomate2/utils/testing/vasp.py Line 237 in 95ea060
|
Ooo this works I was not aware of this. |
So far, there hasn't been an indication for me that it doesn't 😅. In any case safer than not comparing at all. |
@jmmshn could you maybe extract the comparison function for structures to a common testing module, import it from there to vasp.py and the abinit tests? Then, I would be happy to merge. |
Hello @JaGeo and @jmmshn , |
|
@VicTrqt maybe open a pull request and i will merge this. Then, this is fixed and we close this one here. |
Closing this as it is fixed in #1108 |
@jmmshn thanks and don't worry! I also only was able to review and not do it myself 😉 |
Summary
The abinit tests are failing due to a float point comparison that gave the following error:
["The variable 'tsmear' is different in the two files:\n - this file: '0.0036749322175665 Ha'\n - other file: '0.0036749322175655 Ha'"]
This is being patched upstream
abinit/abipy@dc6d097
but I have added bypass here for now.
There is a
_get_differences_tol
function that mimic what the updated function is suppose to do but implemented differently to avoid other updates inabipy
.Once the
abipy
is bumped we can remove this helper function in the tests.Also changed AIMS EOS test to allow for a
1e-4
tolerance.