def __init__(self, cfg_file=".default_runner.cfg",inputfolder_cleanfrom=[]): self.inputfolder_cleanfrom = inputfolder_cleanfrom self.config = nmssm_config("runner_config",cfg_file,"[runner_option] defalut_config_file=.default_runner.cfg") self.folder = self.config.give_value_from_option("folder","runner_option","runners").strip() self.runners = [] self.vetonames = [] self.qstattimestamp = 0 self.check_folder(self.folder) self.qstat = None
def __init__(self, cfg_file=".default_job_config.cfg"): self.runners = runners(cfg_file,['SUCCESS','FAIL','RUNNING']) # self.runners = runners(cfg_file) self.config = nmssm_config("jobs_config",cfg_file,"[jobs_config] defalut_config_file") self.outfolder = cfg_file.split('.')[-2].strip() ## default value for the output folder self.jobfolder = None job_script_block = self.config.give_value_from_option("job_script_block","jobs_config","default_jobscript").strip() self.job_script_tmp = self.config.give_subsection_str(job_script_block,False) self.root_file_input = self.config.give_bool_from_option("root_file_input","jobs_config","true") self.alljobs = [] self.alljobfoldername=[] self.all_replace=[] self.akt_job = single_job()