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

Allow shifting bands plot with different Fermi energies #41

Merged
merged 1 commit into from
May 1, 2024

Conversation

qiaojunfeng
Copy link
Collaborator

Useful for comparing two band structures computed with different pseudopotentials (thus the Fermi energies can be different). For instance,

from aiida_wannier90_workflows.utils.workflows.plot.bands import get_mpl_code_for_workchains

mpl_code = get_mpl_code_for_workchains(workchain_sssp, workchain_dojo, shift_fermi=True)

will shift the two Fermi energies to 0, so that the two bands overlap each other.

When plotting the band structure comparison.
@qiaojunfeng qiaojunfeng merged commit 1f45e30 into aiidateam:main May 1, 2024
6 checks passed
@qiaojunfeng qiaojunfeng deleted the two_fermi branch May 1, 2024 12:56
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.

1 participant