Skip to content

Commit 9e857e1

Browse files
authored
make clear that specific output channel must be specified for view()
1 parent eb3dcc9 commit 9e857e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/basic_training/processes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ workflow {
924924
}
925925
```
926926

927+
This command will produce an error message, because `.view()` operates on single channels, and FOO.out contains multiple channels.
928+
927929
If a process defines two or more output channels, each channel can be accessed by indexing the `.out` attribute, e.g., `.out[0]`, `.out[1]`, etc. In this example you only have the `[0]'th` output:
928930

929931
```groovy linenums="1" title="snippet.nf"

0 commit comments

Comments
 (0)