def edit_vasp_pos(in_name, atoms):
    """
    Overwrite vasp POSCAR file.

    Parameters
    ----------
    in_name : str
        Name of the VASP file
    atoms : list of Atom objects
        Atoms to be written in the POSCAR file

    """
    with open(in_name + '.vasp') as vaspFile:
        content = vaspFile.readlines()
    out_file = open(in_name + '.new.vasp', 'w')
    for line in content:
        out_file.write(line)
        if 'Cartesian' in line:
            break
    for atom in atoms:
        atomStr = '{:10.6f} {:10.6f} {:10.6f}'.format(atom.x, atom.y, atom.z
            ) + '\n'
        out_file.write(atomStr)
    return
