Ejemplo n.º 1
0
 def factory(saved=False):
     nonlocal counter
     counter += 1
     pipeline = Pipeline('Test Pipeline-{}'.format(counter), [], None, None)
     if saved:
         task = task_factory(True)
         task.add_pipeline(pipeline)
     return pipeline
Ejemplo n.º 2
0
 def to_obj(self) -> Pipeline:
     pipeline = Pipeline(name=self.name,
                         steps=safe_loads(self.steps, List[PipelineStep]),
                         input_data=safe_loads(self.input_data, DatasetType),
                         output_data=safe_loads(self.output_data, DatasetType),
                         author=self.author,
                         creation_date=self.creation_date,
                         id=self.id,
                         task_id=self.task_id)
     return self.attach(pipeline)
Ejemplo n.º 3
0
def pipeline():
    return Pipeline('Test Pipeline', [PipelineStep('a', 'b'), PipelineStep('c', 'd')], NumpyNdarrayDatasetType,
                    NumpyNdarrayDatasetType)
Ejemplo n.º 4
0
def pipeline():
    return Pipeline('Test Pipeline', [PipelineStep('a', 'b'), PipelineStep('c', 'd')], None, None)
Ejemplo n.º 5
0
def pipeline2():
    return Pipeline('Test Pipeline2', [PipelineStep('b', 'c')], None, None)