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
beat
beat.backend.python
Commits
f87dffbb
Commit
f87dffbb
authored
Jul 11, 2019
by
Samuel GAIST
Browse files
[helpers] Update for new loop user types
parent
0ad3cc55
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/backend/python/helpers.py
View file @
f87dffbb
...
@@ -263,7 +263,7 @@ def create_inputs_from_configuration(
...
@@ -263,7 +263,7 @@ def create_inputs_from_configuration(
data_source
=
view
.
data_sources
[
details
[
"output"
]]
data_source
=
view
.
data_sources
[
details
[
"output"
]]
if
(
algorithm
.
type
==
Algorithm
.
LEGACY
)
or
(
if
(
algorithm
.
type
==
Algorithm
.
LEGACY
)
or
(
(
algorithm
.
type
==
Algorithm
.
SEQUENTIAL
)
(
algorithm
.
is_sequential
)
and
(
details
[
"channel"
]
==
config
[
"channel"
])
and
(
details
[
"channel"
]
==
config
[
"channel"
])
):
):
input
=
Input
(
name
,
algorithm
.
input_map
[
name
],
data_source
)
input
=
Input
(
name
,
algorithm
.
input_map
[
name
],
data_source
)
...
@@ -314,7 +314,7 @@ def create_inputs_from_configuration(
...
@@ -314,7 +314,7 @@ def create_inputs_from_configuration(
raise
IOError
(
"cannot setup remote data source '%s'"
%
name
)
raise
IOError
(
"cannot setup remote data source '%s'"
%
name
)
if
(
algorithm
.
type
==
Algorithm
.
LEGACY
)
or
(
if
(
algorithm
.
type
==
Algorithm
.
LEGACY
)
or
(
(
algorithm
.
type
==
Algorithm
.
SEQUENTIAL
)
(
algorithm
.
is_sequential
)
and
(
details
[
"channel"
]
==
config
[
"channel"
])
and
(
details
[
"channel"
]
==
config
[
"channel"
])
):
):
input
=
Input
(
name
,
algorithm
.
input_map
[
name
],
data_source
)
input
=
Input
(
name
,
algorithm
.
input_map
[
name
],
data_source
)
...
@@ -342,7 +342,7 @@ def create_inputs_from_configuration(
...
@@ -342,7 +342,7 @@ def create_inputs_from_configuration(
if
algorithm
.
type
==
Algorithm
.
LEGACY
:
if
algorithm
.
type
==
Algorithm
.
LEGACY
:
input
=
_create_local_input
(
details
)
input
=
_create_local_input
(
details
)
elif
algorithm
.
type
==
Algorithm
.
SEQUENTIAL
:
elif
algorithm
.
is_sequential
:
if
details
[
"channel"
]
==
config
[
"channel"
]:
# synchronized
if
details
[
"channel"
]
==
config
[
"channel"
]:
# synchronized
input
=
_create_local_input
(
details
)
input
=
_create_local_input
(
details
)
else
:
else
:
...
...
Write
Preview
Supports
Markdown
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