Exemplo n.º 1
0
 def get(self, run_id):
     """
     Return the dag of the given run
     """
     pipeline = db.pipelines.find_one({'run_id': run_id}, {'config':1, 'single_step':1, '_id':0})
     config = json.loads(pipeline['config'])
     if 'single_step' in pipeline:
         dag = Pipeline.create_dag(config, one_step=True)
     else:
         dag = Pipeline.create_dag(config)
     cy_network = cy.from_networkx(dag)
     return cy_network
Exemplo n.º 2
0
 def get(self, name):
     """
     Return the dag of a pipeline
     """
     cy_network = cy.from_networkx(
         Pipeline.create_dag(pipeline_specs[name]))
     return cy_network
Exemplo n.º 3
0
 def get(self, run_id):
     """
     Return the dag of the given run
     """
     pipeline = db.pipelines.find_one({'run_id': run_id}, {
         'config': 1,
         'single_step': 1,
         '_id': 0
     })
     config = json.loads(pipeline['config'])
     if 'single_step' in pipeline:
         dag = Pipeline.create_dag(config, one_step=True)
     else:
         dag = Pipeline.create_dag(config)
     cy_network = cy.from_networkx(dag)
     return cy_network
Exemplo n.º 4
0
 def get(self, name):
     """
     Return the dag of a pipeline
     """
     cy_network = cy.from_networkx(Pipeline.create_dag(pipeline_specs[name]))
     return cy_network