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