parameters: (self, abundances)
docstring: Create dict for ion intensity scalings
docstring_summary: Create dict for ion intensity scalings
docstring_tokens: Create dict for ion intensity scalings
function: def _makeAbundances(self, abundances):
          """Create dict for ion intensity scalings"""
          if abundances is not None:
              for ion_index in range(len(self.Ions)):
                  self._abundances['ion{}'.format(ion_index)]  = abundances[ion_index]
              max_ion = max(self._abundances, key=lambda key: self._abundances[key])
              ties = {}
              for ion in self._abundances.keys():
                  if ion is not max_ion:
                      factor = self._abundances[ion] / self._abundances[max_ion]
                      tie_key = ion + '.IntensityScaling'
                      tie_value = str(factor) + '*' + max_ion + ".IntensityScaling"
                      ties[tie_key] = tie_value
              self.ties(ties)
          else:
              for ion_index in range(len(self.Ions)):
                  self._abundances['ion{}'.format(ion_index)]  = 1.0
function_tokens: def _makeAbundances ( self , abundances ) : if abundances is not None : for ion_index in range ( len ( self . Ions ) ) : self . _abundances [ 'ion{}' . format ( ion_index ) ] = abundances [ ion_index ] max_ion = max ( self . _abundances , key = lambda key : self . _abundances [ key ] ) ties = { } for ion in self . _abundances . keys ( ) : if ion is not max_ion : factor = self . _abundances [ ion ] / self . _abundances [ max_ion ] tie_key = ion + '.IntensityScaling' tie_value = str ( factor ) + '*' + max_ion + ".IntensityScaling" ties [ tie_key ] = tie_value self . ties ( ties ) else : for ion_index in range ( len ( self . Ions ) ) : self . _abundances [ 'ion{}' . format ( ion_index ) ] = 1.0