code: def build_job_configs(self, args):
          
          job_configs = {}
  
          ttype = args['ttype']
          (targets_yaml, sim) = NAME_FACTORY.resolve_targetfile(args)
          if targets_yaml is None:
              return job_configs
  
          targets = load_yaml(targets_yaml)
  
          for target_name, target_list in targets.items():
              for targ_prof in target_list:
                  name_keys = dict(target_type=ttype,
                                   target_name=target_name,
                                   profile=targ_prof,
                                   fullpath=True)
                  targ_key = "%s_%s" % (target_name, targ_prof)
                  input_path = NAME_FACTORY.sedfile(**name_keys)
                  output_path = input_path.replace('.fits', '.png')
                  logfile = make_nfs_path(input_path.replace('.fits', '.log'))
                  job_config = dict(infile=input_path,
                                    outfile=output_path,
                                    logfile=logfile)
                  job_configs[targ_key] = job_config
  
          return job_configs
docs: Hook to build job configurations