Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
67bbdde2
Commit
67bbdde2
authored
Oct 17, 2017
by
Celine Noirot
Browse files
Add choices option to add_input_file_list function.
parent
0bc6c8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
67bbdde2
...
...
@@ -212,7 +212,7 @@ class Workflow(threading.Thread):
self
.
params_order
.
append
(
name
)
self
.
__setattr__
(
name
,
new_param
)
def
add_input_file_list
(
self
,
name
,
help
,
file_format
=
"any"
,
default
=
None
,
type
=
"inputfile"
,
def
add_input_file_list
(
self
,
name
,
help
,
file_format
=
"any"
,
choices
=
None
,
default
=
None
,
type
=
"inputfile"
,
required
=
False
,
flag
=
None
,
group
=
"default"
,
display_name
=
None
,
size_limit
=
"0"
,
add_to
=
None
,
rules
=
None
):
# check if the size provided is correct
...
...
@@ -225,7 +225,7 @@ class Workflow(threading.Thread):
inputs
=
[
IOFile
(
file
,
file_format
,
name
,
None
)
for
file
in
default
]
else
:
inputs
=
[
IOFile
(
default
,
file_format
,
name
,
None
)]
new_param
=
InputFileList
(
name
,
help
,
flag
=
flag
,
file_format
=
file_format
,
default
=
inputs
,
new_param
=
InputFileList
(
name
,
help
,
flag
=
flag
,
file_format
=
file_format
,
default
=
inputs
,
choices
=
choices
,
type
=
type
,
required
=
required
,
group
=
group
,
display_name
=
display_name
,
size_limit
=
size_limit
,
rules
=
rules
)
new_param
.
linkTrace_nameid
=
name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment