-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix for reading spinful CHG/CHGCAR #717
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor points that isn't fully clear to me, and most likely this part of the code was never tested: https://app.codecov.io/gh/zerothi/sisl/blob/main/src%2Fsisl%2Fio%2Fvasp%2Fchg.py#L76 ;)
So it could be it should always be used!
OK I see. Could you bump sisl-files so the coverage tests will run after a rebase? |
Can I actually do it? (would like to know) |
you should do it in this branch :) |
Can you guide me how to do it? |
something like this: cd <root sisl folder>
git submodule init # if files doesn't already exist and is populated
cd files
git pull
cd ..
git add files done |
The idea is that the submodule should be understood as a file, the content being the commit hash. :) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #717 +/- ##
==========================================
- Coverage 86.67% 86.66% -0.02%
==========================================
Files 399 399
Lines 50718 50773 +55
==========================================
+ Hits 43960 44001 +41
- Misses 6758 6772 +14 ☔ View full report in Codecov by Sentry. |
I encountered a problem when reading spinful
CHG
andCHGCAR
files. I'm unsure if the file formats could have changed, but as far as I can see, in VASP version 5.4.4 only the latter format contains "augmentation occupancies" blocks.I also added a couple of new tests with a nitric oxide molecule in the cell.
isort .
andblack .
[24.2.0] at top-leveldocs/
CHANGELOG.md