code: def build_profile_dict(basedir, profile_name):
      
      profile_path = os.path.join(basedir, "profile_%s.yaml" % profile_name)
      profile_config = load_yaml(profile_path)
      src_name = profile_config['name']
      profile_dict = profile_config['source_model']
      return profile_name, src_name, profile_dict
docs: Get the name and source dictionary for the test source.
      
      Parameters
      ----------
      
      basedir : str
          Path to the analysis directory
          
      profile_name : str
          Key for the spatial from of the target
  
      Returns
      -------
      
      profile_name : str
          Name of for this particular profile
  
      src_name : str
          Name of the source for this particular profile
      
      profile_dict : dict
          Dictionary with the source parameters