Exemplo n.º 1
0
def begin_generic_unlabelled_step(configs,mockdb,pipeline,step_objects,next_step_key,prev_step_key):
    """
    """
    if prev_step_key is None:
        next_step_obj = mockdb[translate_underscores_to_capitals(next_step_key)].__new__(configs['system'],pipeline_config=configs["pipeline"],pipeline=pipeline)
    else:
        next_step_obj = mockdb[translate_underscores_to_capitals(next_step_key)].__new__(configs['system'],pipeline_config=configs["pipeline"],pipeline=pipeline,prev_step=step_objects[prev_step_key])
    if configs["system"].get("Logging","debug") is "True":
       print "  "+translate_underscores_to_capitals(next_step_key)+": " + str(next_step_obj.key) 
    setattr(pipeline,next_step_key+"_key",next_step_obj.key)
    next_step_obj.__fill_qsub_file__(configs)
    if configs["system"].get("Logging","debug") is "True":
        print("Qsub file should be filled in "+next_step_obj.qsub_file)
    next_step_obj.__launch__(configs['system'])
    return next_step_obj
Exemplo n.º 2
0
 def __get_step_obj__(self,system_config,mockdb,step):
     """Returns the database object corresponding to the given step and key."""
     step_key = self.__get_step_key__(step)
     if step_key == None:
         return None
     return mockdb[translate_underscores_to_capitals(step)].__get__(system_config,int(getattr(self,step+"_key")))