Esempio n. 1
0
def collatz():
    collatz_specifier = CollatzDemo(43, rationale='Illustrating dynamic specifiers')
    task_command = SimplePyScriptCommand(script_path)

    task_launcher = Launcher('Collatz_demo', collatz_specifier, task_command)
    task_launcher.description='This is a dynamic example'
    task_launcher.tag='collatz'
    return task_launcher
Esempio n. 2
0
def demoII():
    task_specifier = LinearSpecs('arg1',1,10,steps=5) * LinearSpecs('arg2',10,20,steps=5)

    task_specifier.rationale = """Is this better than a shell script?
    Consider the cross product of 3 parameters with 20 values each,
    ie. 8000 entries. The dispatch module aims to avoid constant
    rewriting of this sort of code with features such as modularity,
    composability, extensive documentation and pre-launch review. """

    task_command = SimplePyScriptCommand(script_path, argorder=['arg1','arg2'])
    task_launcher = Launcher('DemoII', task_specifier, task_command)
    task_launcher.description='This is documentation for demoII'
    task_launcher.tag='demo2'
    return task_launcher