Replies: 1 comment
-
I ended up digging into this and found that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to create and output a variable in a process (a list of strings, for example) and also pass that variable into a function from my lib.
This example is about as simplified as I could manage.
The lib contains
This results in
Variable `output_list` already defined in the process scope @ line 12, column 25.
If
def
is added at the beginning:The output doesn't work:
Missing value declared as output parameter: output_list
Digging into nextflow code, the "already defined" error doesn't apply to variables if they start with
this.
:This appears to work as I would like, but am I missing anything? Is
this
referring to the specific instance of the process, or could the namespace get mixed up somehow?Beta Was this translation helpful? Give feedback.
All reactions