Edit this page on our live server and create a PR by running command !create-pr in the console panel

Output option group_by

  • Difficulty level: easy
  • Time need to lean: 5 minutes or less
  • Key points:
    • Option group_by of output statement defines _output for all substeps

Option group_by of output statement

The output statement defines _output, not step_output, which is accumulated from _output. When we have a set of input files, we usually define output from _input as follows:

In [1]:
[#] 1 step processed (2 jobs completed)

However, there are cases that input and output files are pre-specified so it is not easy to define _output from _input, and you may have to use an variable _index as follows

In [2]:
Input of substep is a.txt, output of substep is ied.bak
Input of substep is b.txt, output of substep is cke.bak

In this case it is easier to specify all output files, and use output option group_by to define _output for all substeps.

In [3]:
Input of substep is a.txt, output of substep is ied.bak
Input of substep is b.txt, output of substep is cke.bak