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
def get(self, name): """ Return the dag of a pipeline """ cy_network = cy.from_networkx( Pipeline.create_dag(pipeline_specs[name])) return cy_network
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
def get(self, name): """ Return the dag of a pipeline """ cy_network = cy.from_networkx(Pipeline.create_dag(pipeline_specs[name])) return cy_network