core icon indicating copy to clipboard operation
core copied to clipboard

processors must still have an output file grp

Open bertsky opened this issue 5 years ago • 0 comments

Despite the changes in the spec long ago, not requiring a processor to have an output_file_grp, core still enforces its defaults, both in the decorators…

https://github.com/OCR-D/core/blob/6ca42f1614fbcaa07801d28d890d104223eb5aa3/ocrd/ocrd/decorators/ocrd_cli_options.py#L25

…and in the Processor constructor…

https://github.com/OCR-D/core/blob/6ca42f1614fbcaa07801d28d890d104223eb5aa3/ocrd/ocrd/processor/base.py#L32

This might go undetected under many circumstances, but the cardinality assertions bring it to the fore:

AssertionError: Expected exactly 0 output file groups, but '['OUTPUT']' has 1

bertsky avatar Oct 21 '20 22:10 bertsky