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
be1a5cf0
Commit
be1a5cf0
authored
Aug 12, 2014
by
Jerome Mariette
Browse files
delete choices from add_input_file
parent
1dfadbdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
be1a5cf0
...
...
@@ -116,15 +116,15 @@ class Workflow(threading.Thread):
self
.
set_stderr
()
self
.
_serialize
()
def
add_input_file
(
self
,
name
,
help
,
file_format
=
"any"
,
default
=
None
,
type
=
"inputfile"
,
choices
=
Non
e
,
required
=
False
,
flag
=
None
,
group
=
"default"
,
display_name
=
None
,
is_list
=
False
,
add_to
=
None
):
def
add_input_file
(
self
,
name
,
help
,
file_format
=
"any"
,
default
=
None
,
type
=
"inputfile"
,
required
=
Fals
e
,
flag
=
None
,
group
=
"default"
,
display_name
=
None
,
is_list
=
False
,
add_to
=
None
):
if
is_list
:
if
default
==
None
:
default
=
[]
new_param
=
InputFileList
(
name
,
help
,
flag
=
flag
,
file_format
=
file_format
,
default
=
default
,
type
=
type
,
choices
=
choices
,
required
=
required
,
group
=
group
,
display_name
=
display_name
)
new_param
=
InputFileList
(
name
,
help
,
flag
=
flag
,
file_format
=
file_format
,
default
=
default
,
type
=
type
,
required
=
required
,
group
=
group
,
display_name
=
display_name
)
else
:
new_param
=
InputFile
(
name
,
help
,
flag
=
flag
,
file_format
=
file_format
,
default
=
default
,
type
=
type
,
choices
=
choices
,
required
=
required
,
group
=
group
,
display_name
=
display_name
)
new_param
=
InputFile
(
name
,
help
,
flag
=
flag
,
file_format
=
file_format
,
default
=
default
,
type
=
type
,
required
=
required
,
group
=
group
,
display_name
=
display_name
)
# if this input should be added to a particular parameter
if
add_to
:
try
:
...
...
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