code: def create_model_name(src):
      
      o = ''
      spatial_type = src['SpatialModel'].lower()
      o += spatial_type
  
      if spatial_type == 'gaussian':
          o += '_s%04.2f' % src['SpatialWidth']
  
      if src['SpectrumType'] == 'PowerLaw':
          o += '_powerlaw_%04.2f' % float(src.spectral_pars['Index']['value'])
      else:
          o += '_%s' % (src['SpectrumType'].lower())
  
      return o
docs: Generate a name for a source object given its spatial/spectral
      properties.
  
      Parameters
      ----------
      src : `~fermipy.roi_model.Source`
            A source object.
  
      Returns
      -------
      name : str
             A source name.