@staticmethod
def get_stresses(filename='OUTCAR', lines=None, si_unit=True):
    '\n\n        Args:\n            filename (str): Input filename\n            lines (list/None): lines read from the file\n            si_unit (bool): True SI units are used\n\n        Returns:\n            numpy.ndarray: An array of stress values\n\n        '
    (trigger_indices, lines) = _get_trigger(lines=lines, filename=filename, trigger='FORCE on cell =-STRESS in cart. coord.  units (eV):')
    pullay_stress_lst = []
    for j in trigger_indices:
        try:
            if si_unit:
                pullay_stress_lst.append([float(l) for l in lines[(j + 13)].split()[1:7]])
            else:
                pullay_stress_lst.append([float(l) for l in lines[(j + 14)].split()[2:8]])
        except ValueError:
            if si_unit:
                pullay_stress_lst.append(([float('NaN')] * 6))
            else:
                pullay_stress_lst.append(([float('NaN')] * 6))
    return np.array(pullay_stress_lst)
Args:
    filename (str): Input filename
    lines (list/None): lines read from the file
    si_unit (bool): True SI units are used

Returns:
    numpy.ndarray: An array of stress values
@staticmethod
def get_stresses(filename='OUTCAR', lines=None, si_unit=True):
    '\n\n        Args:\n            filename (str): Input filename\n            lines (list/None): lines read from the file\n            si_unit (bool): True SI units are used\n\n        Returns:\n            numpy.ndarray: An array of stress values\n\n        '
    (trigger_indices, lines) = _get_trigger(lines=lines, filename=filename, trigger='FORCE on cell =-STRESS in cart. coord.  units (eV):')
    pullay_stress_lst = []
    for j in trigger_indices:
        try:
            if si_unit:
                pullay_stress_lst.append([float(l) for l in lines[(j + 13)].split()[1:7]])
            else:
                pullay_stress_lst.append([float(l) for l in lines[(j + 14)].split()[2:8]])
        except ValueError:
            if si_unit:
                pullay_stress_lst.append(([float('NaN')] * 6))
            else:
                pullay_stress_lst.append(([float('NaN')] * 6))
    return np.array(pullay_stress_lst)