File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ The metadata dictionary for `output_spec` can include:
6262 A short description of the input field. The same as in `input_spec `.
6363
6464`output_file_template ` (`str `):
65- If provided, the field is treated also as an output field and it is added to the output spec .
65+ If provided the output file name (or list of file names) is created using the template .
6666 The template can use other fields, e.g. `{file1} `. The same as in `input_spec `.
6767
6868`output_field_name ` (`str `, used together with `output_file_template `)
@@ -79,3 +79,10 @@ The metadata dictionary for `output_spec` can include:
7979 The fields do not have to be a part of the `output_file_template ` and
8080 if any field from the list is not provided in the input, a `NOTHING ` is returned for the specific output.
8181 This has a different meaning than the `requires ` form the `input_spec `.
82+
83+ `callable ` (`function `):
84+ If provided the output file name (or list of file names) is created using the function.
85+ The function can take `field ` (the specific output field will be passed to the function),
86+ `output_dir ` (task `output_dir ` wil be used), `stdout `, `stderr ` (`stdout ` and `stderr ` of
87+ the task will be sent) `inputs ` (entire `inputs ` will be passed) or any input field name
88+ (a specific input field will be sent).
You can’t perform that action at this time.
0 commit comments