Merge pull request #2089 from hroff-1902/hyperopt-print-colorized

Hyperopt print colorized results
This commit is contained in:
Matthias
2019-08-13 19:36:06 +02:00
committed by GitHub
9 changed files with 47 additions and 5 deletions

View File

@@ -236,6 +236,12 @@ class Configuration(object):
self._args_to_config(config, argname='print_all',
logstring='Parameter --print-all detected ...')
if 'print_colorized' in self.args and not self.args.print_colorized:
logger.info('Parameter --no-color detected ...')
config.update({'print_colorized': False})
else:
config.update({'print_colorized': True})
self._args_to_config(config, argname='hyperopt_jobs',
logstring='Parameter -j/--job-workers detected: {}')