frag_pele/PlopRotTemp_S_2017/PlopRotTemp.py
def check_repite_names(atomnames):
  """
  Check if the mae_file contains any
  repited name. If it's like this
  raise and error.
  """
  atoms_repited = []
  for i, atomname_target in enumerate(atomnames):
    index = i
    while(index!=0):
      index-=1
      if(atomname_target == atomnames[index]):
        identifier = ' Atom:{}, AtomType:{}'.format(i, atomname_target)
        raise Exception(ERROR_ATOMTYPES + identifier)

  Check if the mae_file contains any
  repited name. If it's like this
  raise and error.
  
Check if the mae_file contains any
repited name. If it's like this
raise and error.
Check if the mae_file contains any repited name . If it ' s like this raise and error .
def check_repite_names(atomnames):
  atoms_repited = []
  for i, atomname_target in enumerate(atomnames):
    index = i
    while(index!=0):
      index-=1
      if(atomname_target == atomnames[index]):
        identifier = ' Atom:{}, AtomType:{}'.format(i, atomname_target)
        raise Exception(ERROR_ATOMTYPES + identifier)
def check_repite_names ( atomnames ) : atoms_repited = [ ] for i , atomname_target in enumerate ( atomnames ) : index = i while ( index != 0 ) : index -= 1 if ( atomname_target == atomnames [ index ] ) : identifier = ' Atom:{}, AtomType:{}' . format ( i , atomname_target ) raise Exception ( ERROR_ATOMTYPES + identifier )
Check if the mae_file contains any
repited name.
Check if the mae_file contains any repited name .
"""
  Check if the mae_file contains any
  repited name. If it's like this
  raise and error.
  """
atomnames