[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gwl-devel] variable interpolation in code snippets
From: |
zimoun |
Subject: |
Re: [gwl-devel] variable interpolation in code snippets |
Date: |
Tue, 26 Feb 2019 00:00:08 +0100 |
Hi,
Wow!
It improves a lot the readibilty, IMHO.
On Wed, 20 Feb 2019 at 18:04, Ricardo Wurmus <address@hidden> wrote:
>
> process: python-test
> package-inputs : list "python2"
> data-inputs
> list "sample.bam" "hg38.fa" "abc"
> procedure # python {
> import os
>
> def hello():
> print "hello from python 2"
> print "{{data-inputs}}"
A quick question. The `data-inputs` is a list, so `print
"{{data-inputs}}` should return:
"sample.bam" "hg38.fa" "abc"
Right?
How to refer to "hg38.fa" only?
print "{{second data-inputs}}"
Thank you for this nice improvement !
All the best,
simon