parameters: (self)
docstring: Generalized function to prepare workflow dependent on workflow mode
docstring_summary: Generalized function to prepare workflow dependent on workflow mode
docstring_tokens: Generalized function to prepare workflow dependent on workflow mode
function: def prepare_workflow(self):
          """ Generalized function to prepare workflow dependent on workflow mode"""
          function_name = "prepare_" + self.options.workflow_mode + "_" + self.options.command
          try:
              fill_function = getattr(self, function_name)
          except AttributeError:
              errmsg = "Class `{}` does not implement `{}`"
              raise NotImplementedError( errmsg.format(self.__class__.__name__,
                                                       function_name))
          log.debug("Preparing workflow with function %s" % function_name)
          # call chosen function
          fill_function()
function_tokens: def prepare_workflow ( self ) : function_name = "prepare_" + self . options . workflow_mode + "_" + self . options . command try : fill_function = getattr ( self , function_name ) except AttributeError : errmsg = "Class `{}` does not implement `{}`" raise NotImplementedError ( errmsg . format ( self . __class__ . __name__ , function_name ) ) log . debug ( "Preparing workflow with function %s" % function_name ) # call chosen function fill_function ( )