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
0203c77b
Commit
0203c77b
authored
May 11, 2017
by
Floreal Cabanettes
Browse files
Fix print programs of a workflow
parent
2272c9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
0203c77b
...
...
@@ -641,7 +641,7 @@ class Workflow(threading.Thread):
def
get_workflow_programs
(
self
):
programs
=
OrderedDict
()
for
current_component
in
self
.
components
:
version
=
current_component
.
get_
version
()
version
=
current_component
.
version
if
version
:
program
=
{
"name"
:
current_component
.
get_prg_name
(),
...
...
@@ -650,8 +650,9 @@ class Workflow(threading.Thread):
}
for
param
in
current_component
.
params_order
:
param_obj
=
getattr
(
current_component
,
param
)
if
param_obj
.
cmd_format
!=
""
:
program
[
"parameters"
].
append
(
param_obj
.
cmd_format
.
format
(
param_obj
))
if
param_obj
.
cmd_format
!=
""
and
not
param_obj
.
is_None
and
param_obj
:
program
[
"parameters"
].
append
(
param_obj
.
cmd_format
+
((
" "
+
str
(
param_obj
))
if
param_obj
.
type
!=
bool
else
""
))
programs
[
current_component
.
get_nameid
()]
=
program
return
programs
...
...
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