code: def build_job_configs(self, args):
          
          job_configs = {}
  
          components = Component.build_from_yamlfile(args['comp'])
          NAME_FACTORY.update_base_dict(args['data'])
  
          ret_dict = make_diffuse_comp_info_dict(components=components,
                                                 library=args['library'],
                                                 basedir=NAME_FACTORY.base_dict['basedir'])
          diffuse_comp_info_dict = ret_dict['comp_info_dict']
  
          for diffuse_comp_info_key in sorted(diffuse_comp_info_dict.keys()):
              diffuse_comp_info_value = diffuse_comp_info_dict[diffuse_comp_info_key]
  
              for comp in components:
                  zcut = "zmax%i" % comp.zmax
                  key = comp.make_key('{ebin_name}_{evtype_name}')
                  if diffuse_comp_info_value.components is None:
                      sub_comp_info = diffuse_comp_info_value
                  else:
                      sub_comp_info = diffuse_comp_info_value.get_component_info(comp)
                  name_keys = dict(zcut=zcut,
                                   sourcekey=sub_comp_info.sourcekey,
                                   ebin=comp.ebin_name,
                                   psftype=comp.evtype_name,
                                   mktime='none',
                                   coordsys=comp.coordsys,
                                   irf_ver=NAME_FACTORY.irf_ver(),
                                   fullpath=True)
  
                  outfile = NAME_FACTORY.srcmaps(**name_keys)
                  outfile_tokens = os.path.splitext(outfile)
                  infile_regexp = "%s_*.fits*" % outfile_tokens[0]
                  full_key = "%s_%s" % (sub_comp_info.sourcekey, key)
                  logfile = make_nfs_path(outfile.replace('.fits', '.log'))
                  job_configs[full_key] = dict(output=outfile,
                                               args=infile_regexp,
                                               hdu=sub_comp_info.source_name,
                                               logfile=logfile)
  
          return job_configs
docs: Hook to build job configurations