def build_job_configs(self, args):
        """Hook to build job configurations
        """
        job_configs = {}

        components = Component.build_from_yamlfile(args['comp'])
        NAME_FACTORY.update_base_dict(args['data'])

        ret_dict = make_catalog_comp_dict(library=args['library'],
                                          basedir=NAME_FACTORY.base_dict['basedir'])
        catalog_info_dict = ret_dict['catalog_info_dict']

        for catalog_name  in catalog_info_dict:
            for comp in components:
                zcut = "zmax%i" % comp.zmax
                key = comp.make_key('{ebin_name}_{evtype_name}')
                name_keys = dict(zcut=zcut,
                                 sourcekey=catalog_name,
                                 ebin=comp.ebin_name,
                                 psftype=comp.evtype_name,
                                 coordsys=comp.coordsys,
                                 irf_ver=NAME_FACTORY.irf_ver(),
                                 mktime='none',
                                 fullpath=True)

                outfile = NAME_FACTORY.srcmaps(**name_keys)
                outfile_tokens = os.path.splitext(outfile)
                infile_regexp = "%s_*.fits" % outfile_tokens[0]
                logfile = make_nfs_path(outfile.replace('.fits', '.log'))
                job_configs[key] = dict(output=outfile,
                                        args=infile_regexp,
                                        logfile=logfile)

        return job_configs
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_catalog_comp_dict ( library = args [ 'library' ] , basedir = NAME_FACTORY . base_dict [ 'basedir' ] ) catalog_info_dict = ret_dict [ 'catalog_info_dict' ] for catalog_name in catalog_info_dict : for comp in components : zcut = "zmax%i" % comp . zmax key = comp . make_key ( '{ebin_name}_{evtype_name}' ) name_keys = dict ( zcut = zcut , sourcekey = catalog_name , ebin = comp . ebin_name , psftype = comp . evtype_name , coordsys = comp . coordsys , irf_ver = NAME_FACTORY . irf_ver ( ) , mktime = 'none' , fullpath = True ) outfile = NAME_FACTORY . srcmaps ( ** name_keys ) outfile_tokens = os . path . splitext ( outfile ) infile_regexp = "%s_*.fits" % outfile_tokens [ 0 ] logfile = make_nfs_path ( outfile . replace ( '.fits' , '.log' ) ) job_configs [ key ] = dict ( output = outfile , args = infile_regexp , logfile = logfile ) return job_configs
Hook to build job configurations