@staticmethod
def get_fermi_level(filename='OUTCAR', lines=None):
    '\n        Getting the Fermi-level (Kohn_Sham) from the OUTCAR file\n\n        Args:\n            filename (str): Filename of the OUTCAR file to parse\n            lines (list/None): lines read from the file\n\n        Returns:\n            float: The Kohn-Sham Fermi level in eV\n        '
    trigger = 'E-fermi :'
    (trigger_indices, lines) = _get_trigger(lines=lines, filename=filename, trigger=trigger)
    if (len(trigger_indices) != 0):
        try:
            return float(lines[trigger_indices[(- 1)]].split(trigger)[(- 1)].split()[0])
        except ValueError:
            return
    else:
        return
Getting the Fermi-level (Kohn_Sham) from the OUTCAR file

Args:
    filename (str): Filename of the OUTCAR file to parse
    lines (list/None): lines read from the file

Returns:
    float: The Kohn-Sham Fermi level in eV
@staticmethod
def get_fermi_level(filename='OUTCAR', lines=None):
    '\n        Getting the Fermi-level (Kohn_Sham) from the OUTCAR file\n\n        Args:\n            filename (str): Filename of the OUTCAR file to parse\n            lines (list/None): lines read from the file\n\n        Returns:\n            float: The Kohn-Sham Fermi level in eV\n        '
    trigger = 'E-fermi :'
    (trigger_indices, lines) = _get_trigger(lines=lines, filename=filename, trigger=trigger)
    if (len(trigger_indices) != 0):
        try:
            return float(lines[trigger_indices[(- 1)]].split(trigger)[(- 1)].split()[0])
        except ValueError:
            return
    else:
        return