-
-
Notifications
You must be signed in to change notification settings - Fork 62
Fixes for native hamiltonian format #888
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
Conversation
One should perhaps take this opportunity to also include some tests.... |
Thanks for this, I can see why this fixes the issue, I will have to amend this to ensure it works for all |
Yes, indeed this algorithm assumes a specific ordering. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #888 +/- ##
==========================================
- Coverage 86.87% 86.82% -0.06%
==========================================
Files 405 405
Lines 53231 53294 +63
==========================================
+ Hits 46247 46272 +25
- Misses 6984 7022 +38 ☔ View full report in Codecov by Sentry. |
- Added typing. - Allowed lattice to be an alias for the cell block. - Added check for polarized hamiltonian, still not capable of writing anything but un-polarized. - significantly speeded up the processing step before writing the data. There was a lot of cleaning the data, which isn't necessary. - Fixed a bug that could omit the diagonal component if the Hamiltonian value was 0. - streamlined the write process so it is always the same supercell connections that gets written. The order is still not stringent. Also added tests for this. Signed-off-by: Nick Papior <[email protected]>
@tfrederiksen I have fixed lots of small problems. With added tests. Thanks for the fixes and report! |
Signed-off-by: Nick Papior <[email protected]>
Thanks! |
Closes #887
This PR produces the following
test1.ham
that looks complete and correct: