Skip to content

Why is my program all displayed after running This error #6

@dshfjsd

Description

@dshfjsd

'grep' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������
Traceback (most recent call last):
File "C:/Users/10157/PycharmProjects/pythonProject2/dos.py", line 4, in
bs = Band(folder=r'C:\Users\10157\Desktop\band')
File "C:\Users\10157\PycharmProjects\pythonProject2\venv\lib\site-packages\vaspvis\band.py", line 120, in init
self.efermi = float(os.popen(f'grep E-fermi {os.path.join(folder, "OUTCAR")}').read().split()[2]) + shift_efermi
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions