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
a5d483f9
Commit
a5d483f9
authored
Feb 03, 2017
by
Floreal Cabanettes
Browse files
Fix __write_element function for objects inputs/outputs
parent
c51f935a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/component.py
View file @
a5d483f9
...
...
@@ -595,7 +595,7 @@ class Component(object):
collect
=
collect
,
local
=
local
,
arguments
=
arguments
)
else
:
py_function
(
inputs
=
new_inputs
,
outputs
=
new_outputs
,
arguments
=
arguments
,
includes
=
includes
+
includes_in
)
self
.
__write_trace
(
function
.
__name__
,
inputs
,
outputs
,
arguments
,
cmd_format
,
map
,
"PythonFunction"
)
def
add_shell_execution
(
self
,
source
,
inputs
=
[],
outputs
=
[],
arguments
=
[],
includes
=
[],
...
...
@@ -635,12 +635,11 @@ class Component(object):
if
isinstance
(
element
[
0
],
list
):
for
i
in
range
(
len
(
element
))
:
to_write
+=
"List"
+
str
(
i
+
1
)
+
":
\n
"
to_write
+=
"
\n
"
.
join
(
element
[
i
])
+
"
\n
"
to_write
+=
"
\n
"
.
join
(
[
str
(
x
)
for
x
in
element
[
i
]
]
)
+
"
\n
"
else
:
to_write
+=
"
\n
"
.
join
(
element
)
+
"
\n
"
to_write
+=
"
\n
"
.
join
(
[
str
(
x
)
for
x
in
element
]
)
+
"
\n
"
else
:
to_write
+=
element
+
"
\n
"
to_write
+=
str
(
element
)
+
"
\n
"
if
to_write
!=
""
:
fh
.
write
(
title
+
" :
\n
"
)
fh
.
write
(
to_write
)
\ No newline at end of file
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