From 4c889e0a76aa3a3b8f37d625af7e378fafa01d79 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 27 Oct 2010 12:19:50 -0700 Subject: [PATCH] -m/--manager now defaults to auto-select. --- pysawsim/sawsim.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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'), -- 2.26.2