Browse Source

grond go and grond report: change default of --threads to 1

grondown_fdsn
Sebastian Heimann 1 year ago
parent
commit
859bdac014
2 changed files with 7 additions and 8 deletions
  1. +6
    -6
      src/apps/grond.py
  2. +1
    -2
      test/test_scenario.py

+ 6
- 6
src/apps/grond.py View File

@ -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',


+ 1
- 2
test/test_scenario.py View File

@ -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)

Loading…
Cancel
Save