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

When multiple bands plotted, bands has a unexpected rigid shift #55

Open
unkcpz opened this issue Feb 28, 2023 · 1 comment
Open

When multiple bands plotted, bands has a unexpected rigid shift #55

unkcpz opened this issue Feb 28, 2023 · 1 comment

Comments

@unkcpz
Copy link
Collaborator

unkcpz commented Feb 28, 2023

When I plot two bands which has a shift in fermi level, the bands are not aligned properly, as shown below. You can find the exported JSON below and the fermi level is different but since it is a metal, the bands should aligned in terms of fermi level.

Is that possible in widget, only one fermi level is used rather than the bands are shifted to 0eV by substracting the fermi energy?

image

Here is the JSON file, exported from the widget:
bandData0.json.txt

bandData1.json.txt

@dou-du
Copy link
Contributor

dou-du commented Mar 29, 2023

It is not hard to implement one Fermi level to algin for all bands data. However, the question is whether we want to do this since we can easily modified the JSON file Fermi energy value.

unkcpz added a commit to aiidalab/aiidalab-sssp that referenced this issue Mar 30, 2023
The workaround for the issue in osscar-org/widget-bandsplot#55 from the frontend, but it should be fixed from bandsplot widget side.
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

No branches or pull requests

2 participants