Skip to content
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

read wannier centres and symmetry kpath from w90 #253

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

cnyeh
Copy link

@cnyeh cnyeh commented May 22, 2024

The checkpoint file generated by the Wannier90 converter has been very useful to my codes for downfolding and embedding. In addition to what is already included, I would like to add two additional datasets to the h5 archive:

  1. Centres of Wannier functions: This can be obtained using the read_wannier90_centres() function. This would also be useful if one wants to shift Wannier centres back to the home unit cells on-the-fly in dft_tool.
  2. High-symmetry k-path for band structure: This can be obtained using the read_wannier90_symm_kpath() function.

Both of them are standalone functions. However, the decision on where to call them to minimize interface changes is open for discussion. Any feedback and comments are appreciated!

if self.bloch_basis:
np.append(things_to_save, 'kpt_basis')
things_to_save.append('kpt_basis')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like test/python/w90_convert_SrVO3.py fails at h5diff (line 63) since kpt_basis is not present in _blochbasis.ref.h5

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no wonder the old code np.append(things_to_save, 'kpt_basis') will not alter things_to_save it will only give back a new np.array with kpt_basis added. kpt_basis was never saved. I updated the reference h5 file. Thanks for finding this bug!

@the-hampel the-hampel merged commit b8a667b into TRIQS:unstable Jun 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants