parameters: (self, param_vals=None, param_prefix="")
return_statement: return fitting_str + ";"
docstring: Creates a string used by the Fit algorithm for this profile
  
          :param param_vals: A table of values for the parameters that override those set
          on the object already. Default=None
          :param param_prefix: A string prefix for the parameter as seen by the Mantid Fit algorithm
docstring_summary: Creates a string used by the Fit algorithm for this profile
docstring_tokens: Creates a string used by the Fit algorithm for this profile
function: def create_fit_function_str(self, param_vals=None, param_prefix=""):
          """Creates a string used by the Fit algorithm for this profile
  
          :param param_vals: A table of values for the parameters that override those set
          on the object already. Default=None
          :param param_prefix: A string prefix for the parameter as seen by the Mantid Fit algorithm
          """
          vals_provided = (param_vals is not None)
  
          if vals_provided:
              def_width = param_vals[param_prefix + "Width"]
          else:
              def_width = self.width
              if isinstance(def_width, list):
                  def_width = def_width[1]
  
          def to_space_sep_str(collection):
              _str = ""
              for item in collection:
                  _str += " " + str(item)
              return _str.lstrip()
          hermite_str = to_space_sep_str(self.hermite_co)
  
          fitting_str = "name={0},Mass={1:f},HermiteCoeffs={2},Width={3:f}".format(self.cfunction,
                                                                                   self.mass, hermite_str,
                                                                                   def_width)
          if vals_provided:
              par_names = ["FSECoeff"]
              for i, coeff in enumerate(self.hermite_co):
                  if coeff > 0:
                      par_names.append("C_{0}".format(2*i))
              for par_name in par_names:
                  fitting_str += ",{0}={1:f}".format(par_name, param_vals[param_prefix + par_name])
          else:
              if self.fsecoeff is not None:
                  fitting_str += "FSECoeff={0}".format(self.fsecoeff)
              if self.hermite_coeff_vals is not None:
                  for i, coeff in list(self.hermite_coeff_vals.items()):
                      if coeff > 0:
                          fitting_str += ",C_{0}={1:f}".format(i, coeff)
  
          logger.debug("Gram Charlier profile fit function string: {0}".format(fitting_str))
          return fitting_str + ";"
function_tokens: def create_fit_function_str ( self , param_vals = None , param_prefix = "" ) : vals_provided = ( param_vals is not None ) if vals_provided : def_width = param_vals [ param_prefix + "Width" ] else : def_width = self . width if isinstance ( def_width , list ) : def_width = def_width [ 1 ] def to_space_sep_str ( collection ) : _str = "" for item in collection : _str += " " + str ( item ) return _str . lstrip ( ) hermite_str = to_space_sep_str ( self . hermite_co ) fitting_str = "name={0},Mass={1:f},HermiteCoeffs={2},Width={3:f}" . format ( self . cfunction , self . mass , hermite_str , def_width ) if vals_provided : par_names = [ "FSECoeff" ] for i , coeff in enumerate ( self . hermite_co ) : if coeff > 0 : par_names . append ( "C_{0}" . format ( 2 * i ) ) for par_name in par_names : fitting_str += ",{0}={1:f}" . format ( par_name , param_vals [ param_prefix + par_name ] ) else : if self . fsecoeff is not None : fitting_str += "FSECoeff={0}" . format ( self . fsecoeff ) if self . hermite_coeff_vals is not None : for i , coeff in list ( self . hermite_coeff_vals . items ( ) ) : if coeff > 0 : fitting_str += ",C_{0}={1:f}" . format ( i , coeff ) logger . debug ( "Gram Charlier profile fit function string: {0}" . format ( fitting_str ) ) return fitting_str + ";"