From: W. Trevor King Date: Wed, 27 Oct 2010 19:19:50 +0000 (-0700) Subject: -m/--manager now defaults to auto-select. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c889e0a76aa3a3b8f37d625af7e378fafa01d79;p=sawsim.git -m/--manager now defaults to auto-select. --- diff --git a/pysawsim/sawsim.py b/pysawsim/sawsim.py index ccac6f3..4f34da8 100644 --- a/pysawsim/sawsim.py +++ b/pysawsim/sawsim.py @@ -61,8 +61,7 @@ Event = namedtuple( class SawsimRunner (object): """ - >>> from .manager.thread import ThreadManager - >>> m = ThreadManager() + >>> m = get_manager()() >>> sr = SawsimRunner(sawsim='bin/sawsim', manager=m) >>> for run in sr(param_string=DEFAULT_PARAM_STRING, N=2): ... print 'New run' @@ -104,9 +103,9 @@ class SawsimRunner (object): default=400), Option('-m', '--manager', dest='manager', metavar='STRING', - help='Job manager name (one of %s) (%%default).' + help='Job manager name (one of %s) (default: auto-select).' % (', '.join(MANAGERS)), - default=MANAGERS[0]), + default=None), Option('-C','--use-cache', dest='use_cache', help='Use cached simulations if they exist (vs. running new simulations) (%default)', default=False, action='store_true'),