code: def build_job_configs(self, args):
          
          job_configs = {}
  
          ttype = args['ttype']
          (targets_yaml, sim) = NAME_FACTORY.resolve_targetfile(
              args, require_sim_name=True)
          if targets_yaml is None:
              return job_configs
  
          write_full = args['write_full']
  
          targets = load_yaml(targets_yaml)
  
          base_config = dict(config=args['config'],
                             nsims=args['nsims'],
                             seed=args['seed'])
  
          first = args['seed']
          last = first + args['nsims'] - 1
  
          for target_name, profile_list in targets.items():
              for profile in profile_list:
                  full_key = "%s:%s:%s" % (target_name, profile, sim)
                  name_keys = dict(target_type=ttype,
                                   target_name=target_name,
                                   sim_name=sim,
                                   profile=profile,
                                   fullpath=True)
                  sed_file = NAME_FACTORY.sim_sedfile(**name_keys)
                  outfile = sed_file.replace(
                      '_SEED.fits', '_collected_%06i_%06i.fits' % (first, last))
                  logfile = make_nfs_path(outfile.replace('.fits', '.log'))
                  if not write_full:
                      outfile = None
                  summaryfile = sed_file.replace(
                      '_SEED.fits', '_summary_%06i_%06i.fits' % (first, last))
                  job_config = base_config.copy()
                  job_config.update(dict(sed_file=sed_file,
                                         outfile=outfile,
                                         summaryfile=summaryfile,
                                         logfile=logfile))
                  job_configs[full_key] = job_config
  
          return job_configs
docs: Hook to build job configurations