Skip to content
GitLab
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
6cc0899d
Commit
6cc0899d
authored
Dec 19, 2016
by
Floreal Cabanettes
Browse files
Fix files unique rule
parent
29a171e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/rules.py
View file @
6cc0899d
...
...
@@ -202,6 +202,6 @@ class FilesUnique(SimpleRule):
sub_parameter
=
arg
.
replace
(
self
.
parameter_name
+
">"
,
""
).
replace
(
"-"
,
"_"
)
sub_parameter_obj
=
sub_parameters
[
sub_parameter
][
0
]
if
isinstance
(
sub_parameter_obj
,
InputFile
)
or
isinstance
(
sub_parameter_obj
,
InputDirectory
):
all_files
.
append
(
value
[
0
])
all_files
+=
value
if
len
(
set
(
all_files
))
<
len
(
all_files
):
self
.
error
(
"Some files into '"
+
self
.
parameter_name
+
"' are given several times"
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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