Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
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()
Exemple #4
0
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()
Exemple #5
0
def test_output(workflow):
    workflow.output()
Exemple #6
0
def output(args=None, path=None):
    if args and args.path:
        path = args.path
    workflow.output(path)
Exemple #7
0
def test_output(workflow):
    workflow.output()
Exemple #8
0
def output(args=None, path=None):
    if args and args.path:
        path = args.path
    workflow.output(path)