-
Notifications
You must be signed in to change notification settings - Fork 140
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 U matrices not being written #177
Fix U matrices not being written #177
Conversation
These were used to decide hether to enter the plotting routines. This was causing the `write_u_matrices` to be ignored if there wasn't also another plotting flag active. Now the routine is always called, and inside it there were already the appropriate if statements. This new design should be more future-proof when more plotting modes are added. I only put the header printing within an if, this is in the same file so easier to notice in the future, and anyway even if forgotten will just not print the header. This commit fixes wannier-developers#139
and the size of the U matrices is correct.
Codecov Report
@@ Coverage Diff @@
## develop #177 +/- ##
===========================================
+ Coverage 57.57% 57.66% +0.08%
===========================================
Files 27 27
Lines 15624 15624
===========================================
+ Hits 8995 9009 +14
+ Misses 6629 6615 -14
Continue to review full report at Codecov.
|
Looks good. |
Hi @mostofi, you closed instead of merging. I'll reopen it - you need to approve it and then merge it. |
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.
Looks good.
…plotting_u_matrices Fix U matrices not being written
This PR fixes #139 by removing the unneeded checks in wannier_prog for plotting.
These were used to decide hether to enter the plotting routines.
This was causing the
write_u_matrices
to be ignored if there wasn't also another plotting flag active.I'm also adding a test to check that the
_u.mat
is actually being generated, and that at least the matrix shape is correct.