Python wrapper for running instances of trisurf-ng
Samo Penic
2017-01-06 f0131dcc3b40089ad3129535aa9c3f4965452c39
networkedExample.py
@@ -19,10 +19,18 @@
run3.setSubdir("run2")
Runs=[run2, run3]
hosts=({'name':'Hestia','address':'kabinet.penic.eu', 'runs':Runs, 'username':'samo'},
   {'name':'altea','address':'127.0.0.1', 'runs':Runs, 'username':'samo'})
#this is how analyses are defined
def analyze(run, **kwargs):
   host=kwargs.get('host', None)
   print("Analysis on host "+host['name']+" for run "+run.Dir.fullpath()+" completed")
tsmgr.start(hosts)
hosts=({'name':'natalie','address':'kabinet.penic.eu', 'runs':Runs, 'username':'samo'},
   {'name':'Hestia','address':'127.0.0.1', 'runs':Runs, 'username':'samo'})
analyses={'analysis1':analyze,}
tsmgr.start(hosts, analyses=analyses)