parameters: (atom_list)
return_statement: return radii
docstring: Sets the mbondi radii
docstring_summary: Sets the mbondi radii
docstring_tokens: Sets the mbondi radii
function: def _mbondi_radii(atom_list):
      """ Sets the mbondi radii """
      radii = [0.0 for atom in atom_list]
      for i, atom in enumerate(atom_list):
          # Radius of H atom depends on element it is bonded to
          if atom.type.atomic_number == 1:
              bondeds = list(atom.bond_partners)
              if bondeds[0].type.atomic_number in (6, 7): # C or N
                  radii[i] = 1.3
              elif bondeds[0].type.atomic_number in (8, 16): # O or S
                  radii[i] = 0.8
              else:
                  radii[i] = 1.2
          # Radius of C atom depends on what type it is
          elif atom.type.atomic_number == 6:
              radii[i] = 1.7
          # All other elements have fixed radii for all types/partners
          elif atom.type.atomic_number == 7:
              radii[i] = 1.55
          elif atom.type.atomic_number == 8:
              radii[i] = 1.5
          elif atom.type.atomic_number == 9:
              radii[i] = 1.5
          elif atom.type.atomic_number == 14:
              radii[i] = 2.1
          elif atom.type.atomic_number == 15:
              radii[i] = 1.85
          elif atom.type.atomic_number == 16:
              radii[i] = 1.8
          elif atom.type.atomic_number == 17:
              radii[i] = 1.5
          else:
              radii[i] = 1.5
      return radii
function_tokens: def _mbondi_radii ( atom_list ) : radii = [ 0.0 for atom in atom_list ] for i , atom in enumerate ( atom_list ) : # Radius of H atom depends on element it is bonded to if atom . type . atomic_number == 1 : bondeds = list ( atom . bond_partners ) if bondeds [ 0 ] . type . atomic_number in ( 6 , 7 ) : # C or N radii [ i ] = 1.3 elif bondeds [ 0 ] . type . atomic_number in ( 8 , 16 ) : # O or S radii [ i ] = 0.8 else : radii [ i ] = 1.2 # Radius of C atom depends on what type it is elif atom . type . atomic_number == 6 : radii [ i ] = 1.7 # All other elements have fixed radii for all types/partners elif atom . type . atomic_number == 7 : radii [ i ] = 1.55 elif atom . type . atomic_number == 8 : radii [ i ] = 1.5 elif atom . type . atomic_number == 9 : radii [ i ] = 1.5 elif atom . type . atomic_number == 14 : radii [ i ] = 2.1 elif atom . type . atomic_number == 15 : radii [ i ] = 1.85 elif atom . type . atomic_number == 16 : radii [ i ] = 1.8 elif atom . type . atomic_number == 17 : radii [ i ] = 1.5 else : radii [ i ] = 1.5 return radii