コード例 #1
0
    def __init__(self, create_graph=None, params={}):

        WorkflowGraph.__init__(self)
        self.inputmappings = {}
        self.outputmappings = {}
        if create_graph:
            create_graph(self, **params)
コード例 #2
0
ファイル: base.py プロジェクト: AndreiFrunze/wrangler
 def __init__(self, create_graph=None, params={}):
     '''
     Instantiate and populate the graph, if the function provided.
     Otherwise, the graph must be populated explicitly by the subclass or
     after instantiating the object.
     '''
     WorkflowGraph.__init__(self)
     self.inputmappings = {}
     self.outputmappings = {}
     if create_graph:
         create_graph(self, **params)
コード例 #3
0
ファイル: base.py プロジェクト: KNMI/wps_workflow
 def __init__(self, create_graph=None, params={}):
     '''
     Instantiate and populate the graph, if the function provided.
     Otherwise, the graph must be populated explicitly by the subclass or
     after instantiating the object.
     '''
     WorkflowGraph.__init__(self)
     self.inputmappings = {}
     self.outputmappings = {}
     if create_graph:
         create_graph(self, **params)
コード例 #4
0
    def __init__(self, param):

        WorkflowGraph.__init__(self)
        self.param = param
        self.preprocess = None
        self.num_block = 1
        self.nb_block = len(param)
        self.combine_proc_elem = None

        #Check B2DROP id
        param_workflow = self.param['Workflow'][0]
        list_param_workflow = param_workflow.keys()
        #b2drop = [i for i in [*param_workflow] if 'B2DROP' in i]
        b2drop = [i for i in list_param_workflow if 'B2DROP' in i]
        if b2drop:
            self.b2drop_id = param_workflow[b2drop[0]]