From 859bdac0148f528cdfe0ea100f489b3eb7837dd7 Mon Sep 17 00:00:00 2001 From: Sebastian Heimann Date: Sat, 8 Jun 2019 10:47:39 +0200 Subject: [PATCH] grond go and grond report: change default of --threads to 1 --- src/apps/grond.py | 12 ++++++------ test/test_scenario.py | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/apps/grond.py b/src/apps/grond.py index a212bd0..dbf7e89 100644 --- a/src/apps/grond.py +++ b/src/apps/grond.py @@ -735,9 +735,9 @@ def command_go(args): help='set number of events to process in parallel, ' 'if set to more than one, --status=quiet is implied.') parser.add_option( - '--threads', dest='nthreads', type=int, default=0, - help='set number of threads per process. This defaults to 0,' - 'which is using all available cores.') + '--threads', dest='nthreads', type=int, default=1, + help='set number of threads per process (default: 1).' + 'Set to 0 to use all available cores.') parser, options, args = cl_parse('go', args, setup) @@ -1175,9 +1175,9 @@ def command_report(args): help='set number of runs to process in parallel, ' 'If set to more than one, --status=quiet is implied.') parser.add_option( - '--threads', dest='nthreads', type=int, default=0, - help='set number of threads per process. This defaults to 0,' - 'which is using all available cores.') + '--threads', dest='nthreads', type=int, default=1, + help='set number of threads per process (default: 1).' + 'Set to 0 to use all available cores.') parser.add_option( '--no-archive', dest='no_archive', diff --git a/test/test_scenario.py b/test/test_scenario.py index 3a004d8..a9820dd 100644 --- a/test/test_scenario.py +++ b/test/test_scenario.py @@ -53,8 +53,7 @@ def test_scenario(): grond( 'go', quick_config_path, '--parallel=2', - '--threads=1', '--force', *event_names) rundir_paths = common.get_rundir_paths(config_path, event_names) - grond('report', '--parallel=2', '--threads=1', *rundir_paths) + grond('report', '--parallel=2', *rundir_paths)