Skip to content

Commit

Permalink
ENH: Instrument to avoid failure if dot is not available for tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jan 15, 2013
1 parent b79a892 commit 2446b94
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions AutoWorkup/baw_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,23 +269,40 @@ def main(argv=None):
SGEFlavor = 'SGE'
try:
if input_arguments.wfrun == 'helium_all.q':
try:
baw200.write_graph()
except:
pass
baw200.run(plugin=SGEFlavor,
plugin_args=dict(template=JOB_SCRIPT, qsub_args="-S /bin/bash -pe smp1 1-12 -l h_vmem=19G,mem_free=9G -o /dev/null -e /dev/null " + CLUSTER_QUEUE))
elif input_arguments.wfrun == 'helium_all.q_graph':
try:
baw200.write_graph()
except:
pass
SGEFlavor = 'SGEGraph' # Use the SGEGraph processing
baw200.run(plugin=SGEFlavor,
plugin_args=dict(template=JOB_SCRIPT, qsub_args="-S /bin/bash -pe smp1 1-12 -l h_vmem=19G,mem_free=9G -o /dev/null -e /dev/null " + CLUSTER_QUEUE))
elif input_arguments.wfrun == 'ipl_OSX':
baw200.write_graph()
try:
baw200.write_graph()
except:
pass
print "Running On ipl_OSX"
baw200.run(plugin=SGEFlavor,
plugin_args=dict(template=JOB_SCRIPT, qsub_args="-S /bin/bash -pe smp1 1-12 -l h_vmem=19G,mem_free=9G -o /dev/null -e /dev/null " + CLUSTER_QUEUE))
elif input_arguments.wfrun == 'local_4':
baw200.write_graph()
try:
baw200.write_graph()
except:
pass
print "Running with 4 parallel processes on local machine"
baw200.run(plugin='MultiProc', plugin_args={'n_procs': 4})
elif input_arguments.wfrun == 'local_12':
baw200.write_graph()
try:
baw200.write_graph()
except:
pass
print "Running with 12 parallel processes on local machine"
baw200.run(plugin='MultiProc', plugin_args={'n_procs': 12})
elif input_arguments.wfrun == 'ds_runner':
Expand Down

0 comments on commit 2446b94

Please sign in to comment.