Python wrapper for running instances of trisurf-ng
Samo Penic
2017-01-06 86c9735e844ab75ecdd032bab7415c1bf9ac3271
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)