def output(config): def update_callback(wf, changes): if 'status' in changes and 'step_progress' in changes['status']: draw_progress(changes['status']['step_progress']) path = config['path'].get() workflow = spreads.workflow.Workflow(config=config, path=path) draw_progress(0) spreads.workflow.on_modified.connect(_update_callback, sender=workflow, weak=False) workflow.process() workflow.output()
def output(config): """ Launch output plugins and display their progress :param config: Currently active global configuration :type config: :py:class:`spreads.config.Configuration` """ path = config['path'].get() workflow = spreads.workflow.Workflow(config=config, path=path) draw_progress(0) spreads.workflow.on_modified.connect(_update_callback, sender=workflow, weak=False) workflow.output()
def test_output(workflow): workflow.output()
def output(args=None, path=None): if args and args.path: path = args.path workflow.output(path)