Пример #1
0
def main():    # pragma: no cover
    from dispel4py.new.processor \
        import load_graph_and_inputs, parse_common_args

    args, remaining = parse_common_args()
    args = parse_args(remaining, args)
    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        errormsg = process(graph, inputs, args)
        if errormsg:
            print(errormsg)
Пример #2
0
def main():    # pragma: no cover
    from dispel4py.new.processor \
        import load_graph_and_inputs, parse_common_args

    args, remaining = parse_common_args()
    args = parse_args(remaining, args)

    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        errormsg = process(graph, inputs, args)
        if errormsg:
            print(errormsg)
Пример #3
0
def test_load_graph():
    args = argparse.Namespace
    args.file = None
    args.data = None
    args.iter = 1
    args.attr = None
    args.module = 'dispel4py.examples.graph_testing.pipeline_test'
    # reset the node counter
    WorkflowNode.node_counter = 0
    graph, inputs = p.load_graph_and_inputs(args)
    tools.ok_(graph)
    tools.eq_({'TestProducer0': 1}, inputs)
Пример #4
0
def main():  # pragma: no cover
    '''
    This is the commandline entry point for the simple processor.
    '''
    from dispel4py.new.processor \
        import load_graph_and_inputs, create_arg_parser

    parser = create_arg_parser()
    args = parser.parse_args()

    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        process(graph, inputs)
Пример #5
0
def main():                                                  # pragma: no cover
    '''
    This is the commandline entry point for the simple processor.
    '''
    from dispel4py.new.processor \
        import load_graph_and_inputs, create_arg_parser

    parser = create_arg_parser()
    args = parser.parse_args()

    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        process(graph, inputs)
Пример #6
0
def main():
    from dispel4py.new.processor \
        import load_graph_and_inputs, parse_common_args

    args, remaining = parse_common_args()
    try:
        args = parse_args(remaining, args)
    except SystemExit:
        raise

    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        errormsg = process(graph, inputs, args)
        if errormsg:
            print(errormsg)
Пример #7
0
def main():
    from dispel4py.new.processor \
        import load_graph_and_inputs, parse_common_args

    args, remaining = parse_common_args()
    try:
        args = parse_args(remaining, args)
    except SystemExit:
        raise

    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        errormsg = process(graph, inputs, args)
        if errormsg:
            print(errormsg)
Пример #8
0
def main():  # pragma: no cover
    from dispel4py.new.processor \
        import load_graph_and_inputs, parse_common_args

    args, remaining = parse_common_args()
    args = parse_args(remaining, args)

    graph, inputs = load_graph_and_inputs(args)
    if graph is not None:
        elapsed_time = 0
        start_time = time.time()
        process(graph, inputs=input_data, args=args)
        elapsed_time += time.time() - start_time

        errormsg = process(graph, inputs, args)
        if errormsg:
            print(errormsg)
        print("ELAPSED TIME: " + str(elapsed_time / num))