How to use the anypytools.macro_commands.OperationRun function in anypytools

To help you get started, we’ve selected a few anypytools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AnyBody-Research-Group / AnyPyTools / tests / test_macros.py View on Github external
def test_operationrun():
    c = mc.OperationRun('Main.MyStudy.Kinematics')
    assert c.get_macro(0) == 'operation Main.MyStudy.Kinematics\nrun'
github AnyBody-Research-Group / AnyPyTools / docs / slides / BatchProcess / batchprocess.py View on Github external
from anypytools import AnyPyProcess
from anypytools.macro_commands import Load, OperationRun

app = AnyPyProcess(num_processes = 3)

macro = [Load("main.any"),
         OperationRun('Main.Study.InverseDynamics') ]
         
app.start_macro(macro, search_subdirs= "model[1-9].*main.any" )