@staticmethod
def get_kinetic_energy_error(filename='OUTCAR', lines=None):
    '\n        Get the kinetic energy error\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 kinetic energy error in eV\n        '
    trigger = 'kinetic energy error for atom='
    e_kin_err = list()
    n_species_list = list()
    nion_trigger = 'ions per type ='
    tot_kin_error = 0.0
    lines = _get_lines_from_file(filename=filename, lines=lines)
    for (i, line) in enumerate(lines):
        line = line.strip()
        if (trigger in line):
            e_kin_err.append(float(line.split()[5]))
        if (nion_trigger in line):
            n_species_list = [float(val) for val in line.split(nion_trigger)[(- 1)].strip().split()]
    if ((len(n_species_list) > 0) and (len(n_species_list) == len(e_kin_err))):
        tot_kin_error = np.sum((np.array(n_species_list) * np.array(e_kin_err)))
    return tot_kin_error
Get the kinetic energy error

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

Returns:
    float: The kinetic energy error in eV
@staticmethod
def get_kinetic_energy_error(filename='OUTCAR', lines=None):
    '\n        Get the kinetic energy error\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 kinetic energy error in eV\n        '
    trigger = 'kinetic energy error for atom='
    e_kin_err = list()
    n_species_list = list()
    nion_trigger = 'ions per type ='
    tot_kin_error = 0.0
    lines = _get_lines_from_file(filename=filename, lines=lines)
    for (i, line) in enumerate(lines):
        line = line.strip()
        if (trigger in line):
            e_kin_err.append(float(line.split()[5]))
        if (nion_trigger in line):
            n_species_list = [float(val) for val in line.split(nion_trigger)[(- 1)].strip().split()]
    if ((len(n_species_list) > 0) and (len(n_species_list) == len(e_kin_err))):
        tot_kin_error = np.sum((np.array(n_species_list) * np.array(e_kin_err)))
    return tot_kin_error