def parse_incar(incar):
    """
    Parameters
    ----------
    incar: str
        Path to VASP incar

    Returns
    -------
    encut: int
        Energy Cutoff
    """
    encut = None
    with open(incar, "r") as f:
        for line in f:
            if "ENCUT" in line:
                encut = float(line.split("=")[-1].strip())
    return encut