-m/--manager now defaults to auto-select.
authorW. Trevor King <wking@drexel.edu>
Wed, 27 Oct 2010 19:19:50 +0000 (12:19 -0700)
committerW. Trevor King <wking@drexel.edu>
Wed, 27 Oct 2010 19:19:50 +0000 (12:19 -0700)
pysawsim/sawsim.py

index ccac6f3308da100724ed7d97e0dd1eb7529f33ea..4f34da89c540ee4b44d824ce7cb8a8603d0c64a3 100644 (file)
@@ -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'),