Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.backend.python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.backend.python
Commits
d58add06
Commit
d58add06
authored
8 years ago
by
Philip ABBET
Browse files
Options
Downloads
Patches
Plain Diff
Fix the 'Executor' class
parent
f294df35
No related branches found
No related tags found
1 merge request
!8
Refactoring and support of dataset providing in a container
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/backend/python/executor.py
+4
-4
4 additions, 4 deletions
beat/backend/python/executor.py
with
4 additions
and
4 deletions
beat/backend/python/executor.py
+
4
−
4
View file @
d58add06
...
...
@@ -102,11 +102,11 @@ class Executor(object):
for
name
,
channel
in
self
.
data
[
'
inputs
'
].
items
():
group
=
self
.
input_list
.
group
(
channel
)
if
group
is
None
:
group
=
inputs
.
InputGroup
(
channel
,
(
channel
==
main_channel
),
group
=
inputs
.
Remote
InputGroup
(
channel
,
(
channel
==
main_channel
),
socket
=
self
.
socket
)
self
.
input_list
.
add
(
group
)
thisformat
=
self
.
algorithm
.
dataformats
[
self
.
algorithm
.
input_map
[
name
]]
group
.
add
(
inputs
.
Input
(
name
,
thisformat
,
self
.
socket
))
group
.
add
(
inputs
.
Remote
Input
(
name
,
thisformat
,
self
.
socket
))
logger
.
debug
(
"
Loaded input list with %d group(s) and %d input(s)
"
,
self
.
input_list
.
nbGroups
(),
len
(
self
.
input_list
))
...
...
@@ -115,7 +115,7 @@ class Executor(object):
self
.
output_list
=
outputs
.
OutputList
()
for
name
,
channel
in
self
.
data
[
'
outputs
'
].
items
():
thisformat
=
self
.
algorithm
.
dataformats
[
self
.
algorithm
.
output_map
[
name
]]
self
.
output_list
.
add
(
outputs
.
Output
(
name
,
thisformat
,
self
.
socket
))
self
.
output_list
.
add
(
outputs
.
Remote
Output
(
name
,
thisformat
,
self
.
socket
))
logger
.
debug
(
"
Loaded output list with %d output(s)
"
,
len
(
self
.
output_list
))
...
...
@@ -126,7 +126,7 @@ class Executor(object):
# Retrieve dataformats in the JSON of the algorithm
analysis_format
=
self
.
algorithm
.
result_dataformat
()
analysis_format
.
name
=
'
analysis:
'
+
self
.
algorithm
.
name
self
.
output_list
.
add
(
outputs
.
Output
(
name
,
analysis_format
,
self
.
socket
))
self
.
output_list
.
add
(
outputs
.
Remote
Output
(
name
,
analysis_format
,
self
.
socket
))
logger
.
debug
(
"
Loaded output list for analyzer (1 single output)
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment