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
Imène Lajili
clowdflows
Commits
cd6baea5
Commit
cd6baea5
authored
Mar 24, 2015
by
Janez K
Browse files
cross validation fix
parent
95bd612d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
workflows/fixtures/test_data.json
View file @
cd6baea5
This diff is collapsed.
Click to expand it.
workflows/views.py
View file @
cd6baea5
...
...
@@ -562,17 +562,6 @@ def add_cv(request):
output
.
outer_input
=
input
output
.
save
()
# input: number of folds
cv_input_fold
=
Widget
()
cv_input_fold
.
workflow
=
workflow
cv_input_fold
.
x
=
int
(
request
.
POST
[
'scrollLeft'
])
+
50
y
=
int
(
request
.
POST
[
'scrollTop'
])
+
50
while
workflow
.
widgets
.
filter
(
y
=
y
,
x
=
cv_input_fold
.
x
).
count
()
>
0
:
y
=
y
+
100
cv_input_fold
.
y
=
y
cv_input_fold
.
name
=
'cv input2'
cv_input_fold
.
type
=
'cv_input2'
cv_input_fold
.
save
()
output
=
Output
()
output
.
name
=
'cv input data'
...
...
@@ -590,18 +579,6 @@ def add_cv(request):
output
.
outer_input
=
input
output
.
save
()
# input: seed
cv_input_fold
=
Widget
()
cv_input_fold
.
workflow
=
workflow
cv_input_fold
.
x
=
int
(
request
.
POST
[
'scrollLeft'
])
+
50
y
=
int
(
request
.
POST
[
'scrollTop'
])
+
50
while
workflow
.
widgets
.
filter
(
y
=
y
,
x
=
cv_input_fold
.
x
).
count
()
>
0
:
y
=
y
+
100
cv_input_fold
.
y
=
y
cv_input_fold
.
name
=
'cv input3'
cv_input_fold
.
type
=
'cv_input3'
cv_input_fold
.
save
()
output
=
Output
()
output
.
name
=
'cv input data'
output
.
short_name
=
'sed'
# subproces inner input
...
...
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