pyprocar
pyprocar copied to clipboard
Problem in plotting DOS with SOC
I tried the code on the same system. It works well without SOC but shows error with SOC. I'm using pyprocar v6.5.0 and vasp 5.4.4. Is this because version not compatible?
File "/xxx/dos/plot_dos-atom-projection.py", line 8, in <module>
fig, ax=pyprocar.dosplot(code='vasp',
File "/xxx/.local/lib/python3.9/site-packages/pyprocar/scripts/scriptDosplot.py", line 345, in dosplot
dos.energies -= fermi
AttributeError: 'NoneType' object has no attribute 'energies'
My code is:
fermi = 6.57339800
fig, ax=pyprocar.dosplot(code='vasp',
dirname='./',
mode='overlay_species',
fermi=fermi,
elimit=[-2,2],
atoms=[0,1],
x_label = "E-E$_F$ (eV)",
y_label = "PDOS (states/eV)",
dos_limit=[0,40])