Typo for "Process when empty"?
nick-youngblut opened this issue · 2 comments
nick-youngblut commented
Current example for process-when-empty:
params.inputs = ''
process foo {
debug true
input:
val x
when:
x ## 'EMPTY'
script:
'''
echo hello
'''
}
workflow {
reads_ch = params.inputs
? Channel.fromPath(params.inputs, checkIfExists:true)
: Channel.empty()
reads_ch \
| ifEmpty { 'EMPTY' } \
| foo
}
I'm guessing that x ## 'EMPTY'
should be x == 'EMPTY'
pditommaso commented
Yes, definitively. Thanks for reporting it
mribeirodantas commented
Fixed by 9d66fbd