I canīt change the phi angle of proline using the function below. It works for all other amino acids. If quiet = 0, it prints the value of the variable "phi" (i.e. the value that the phi_angle should adopt). The phi angle of proline is always around ~11.0
def set_phi(res_num, phi):
if res_num != 0:
cmd.set_dihedral('resi %s and name C' % (res_num-1), 'resi %s and name N' % res_num, 'resi %s and name CA' % res_num, 'resi %s and name C' % res_num, phi, state=1, quiet=1)
Thanks in advance.