code: def build_job_configs(self, args):
          
          job_configs = {}
  
          # Tweak the batch job args
          try:
              self._interface._lsf_args.update(dict(n=2))
              self._interface._lsf_args.update(dict(R='\"select[rhel60&&!fell] -R span[hosts=1]\"'))
          except AttributeError:
              pass
  
          models = load_yaml(args['models'])
  
          base_config = dict(fit_strategy=args['fit_strategy'],
                             input_pars=args['input_pars'],
                             load_baseline=args['load_baseline'],
                             make_plots=args['make_plots'])
  
          for modelkey in models:
              config_file = os.path.join('analysis', 'model_%s' % modelkey,
                                         args['config'])
              #roi_baseline = os.path.join('analysis', 'model_%s' % modelkey,
              #                           args['roi_baseline'])
              roi_baseline = args['roi_baseline']
              logfile = os.path.join('analysis', 'model_%s' % modelkey,
                                     'fit_%s.log' % modelkey)
              job_config = base_config.copy()
              job_config.update(dict(config=config_file,
                                     roi_baseline=roi_baseline,
                                     logfile=logfile))
              job_configs[modelkey] = job_config
  
          return job_configs
docs: Hook to build job configurations