libtuning: Only warn if processing returns None
There are valid cases where a module returns None. E.g. no images were provided for LSC calibration. We should however define proper semantics there. Continue with a warning for now. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
54a8405726
commit
8e411bfaef
2 changed files with 5 additions and 2 deletions
|
@ -107,6 +107,9 @@ class YamlOutput(Generator):
|
||||||
]
|
]
|
||||||
|
|
||||||
for module in output_order:
|
for module in output_order:
|
||||||
|
if module not in output_dict:
|
||||||
|
continue
|
||||||
|
|
||||||
out_lines.append(f' - {module.out_name}:')
|
out_lines.append(f' - {module.out_name}:')
|
||||||
|
|
||||||
if len(output_dict[module]) == 0:
|
if len(output_dict[module]) == 0:
|
||||||
|
|
|
@ -200,8 +200,8 @@ class Tuner(object):
|
||||||
for module in self.modules:
|
for module in self.modules:
|
||||||
out = module.process(self.config, images, self.output)
|
out = module.process(self.config, images, self.output)
|
||||||
if out is None:
|
if out is None:
|
||||||
logger.error(f'Module {module.hr_name} failed to process...')
|
logger.warning(f'Module {module.hr_name} failed to process...')
|
||||||
break
|
continue
|
||||||
self.output[module] = out
|
self.output[module] = out
|
||||||
|
|
||||||
self.generator.write(args.output, self.output, self.output_order)
|
self.generator.write(args.output, self.output, self.output_order)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue