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

error plotting band structure #236

Open
oisin67 opened this issue Mar 8, 2024 · 4 comments
Open

error plotting band structure #236

oisin67 opened this issue Mar 8, 2024 · 4 comments

Comments

@oisin67
Copy link

oisin67 commented Mar 8, 2024

Hi. I am trying to plot band structure on SUMO. I have a kpoints file and a vasprun.xml which worked fine for plotting dos yet when I go to plot band structure I get this error. Could anyone explain it to me please?

Traceback (most recent call last):
File "/home/cmtg/.local/bin/sumo-bandplot", line 8, in
sys.exit(main())
File "/home/cmtg/.local/lib/python3.8/site-packages/sumo/cli/bandplot.py", line 886, in main
bandplot(
File "/home/cmtg/.local/lib/python3.8/site-packages/sumo/cli/bandplot.py", line 298, in bandplot
bs = vr.get_band_structure(line_mode=True)
File "/home/cmtg/.local/lib/python3.8/site-packages/pymatgen/io/vasp/outputs.py", line 958, in get_band_structure
if "" in kpoint_file.labels:
TypeError: argument of type 'NoneType' is not iterable

@ajjackson
Copy link
Member

Was the KPOINTS file created using sumo-kgen? Does it include the symmetry labels?

@oisin67
Copy link
Author

oisin67 commented Mar 11, 2024

I just created a KPOINTS file myself. It looks like this:

Regular mesh centered at Gamma (better forces)
0
Gamma
12 12 5

that's all I have. That and a vasprun.xml file

@ajjackson
Copy link
Member

That's not a suitable KPOINTS for a band structure diagram, it's a regular sampling mesh for a DOS.

You need to use sumo-kgen to create an appropriate KPOINTS file and run a non-self-consistent calculation using the density from the DOS calculation.

@ajjackson
Copy link
Member

Hi @oisin67 did you manage to do a full band structure calculation and plot it?

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