@staticmethod
def _get_cells_praser(lines, trigger_indices):
    '\n        Parser to get the cell size and shape for every ionic step from the OUTCAR file\n\n        Args:\n            lines (list): lines read from the file\n            trigger_indices (list): list of line indices where the trigger was found.\n            n_atoms (int): number of atoms\n\n        Returns:\n            numpy.ndarray: A 3x3xM array of the cell shape in $\\AA$\n\n            where M is the number of time steps\n\n        '
    cells = []
    try:
        for j in trigger_indices:
            cell = []
            for line in lines[(j + 5):(j + 8)]:
                line = line.strip()
                line = _clean_line(line)
                cell.append([float(l) for l in line.split()[0:3]])
            cells.append(cell)
        return np.array(cells)
    except ValueError:
        warnings.warn('Unable to parse the cells from the OUTCAR file')
        return
Parser to get the cell size and shape for every ionic step from the OUTCAR file

Args:
    lines (list): lines read from the file
    trigger_indices (list): list of line indices where the trigger was found.
    n_atoms (int): number of atoms

Returns:
    numpy.ndarray: A 3x3xM array of the cell shape in $\AA$

    where M is the number of time steps
@staticmethod
def _get_cells_praser(lines, trigger_indices):
    '\n        Parser to get the cell size and shape for every ionic step from the OUTCAR file\n\n        Args:\n            lines (list): lines read from the file\n            trigger_indices (list): list of line indices where the trigger was found.\n            n_atoms (int): number of atoms\n\n        Returns:\n            numpy.ndarray: A 3x3xM array of the cell shape in $\\AA$\n\n            where M is the number of time steps\n\n        '
    cells = []
    try:
        for j in trigger_indices:
            cell = []
            for line in lines[(j + 5):(j + 8)]:
                line = line.strip()
                line = _clean_line(line)
                cell.append([float(l) for l in line.split()[0:3]])
            cells.append(cell)
        return np.array(cells)
    except ValueError:
        warnings.warn('Unable to parse the cells from the OUTCAR file')
        return