Commit 793bbe2b authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

fixed some minor issues

parent ecd7d2fe
......@@ -81,9 +81,9 @@ def add_common_options(parser):
type='choice',
choices=('critical', 'error', 'warning', 'info', 'debug'),
default='info',
help ='set logger level to '
'"critical", "error", "warning", "info", or "debug". '
'Default is "%default".')
help='set logger level to '
'"critical", "error", "warning", "info", or "debug". '
'Default is "%default".')
def process_common_options(options):
......@@ -279,6 +279,9 @@ def command_forward(args):
event_names = args[1:]
if not event_names:
help_and_die(parser, 'no event names given')
run_path = args[0]
grond.forward(
run_path,
......
......@@ -1552,7 +1552,10 @@ def bootstrap_outliers(problem, misfits, std_factor=1.0):
return num.where(gms > m+s)[0]
def forward(rundir_or_config_path, event_names=None):
def forward(rundir_or_config_path, event_names):
if not event_names:
return
if os.path.isdir(rundir_or_config_path):
rundir = rundir_or_config_path
......@@ -1993,7 +1996,7 @@ def process_event(ievent, g_data_id):
analyse(
problem,
niter=config.analyser_config.niter,
show_progress=nparallel == 1)
show_progress=nparallel == 1 and status)
basepath = config.get_basepath()
config.change_basepath(rundir)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment