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.editor
Commits
8a96e41f
Commit
8a96e41f
authored
Jun 17, 2020
by
Samuel GAIST
Committed by
Samuel GAIST
Jun 17, 2020
Browse files
[backend][experimentmodel] Do not assume map content
The model will also be used on new experiments which are empty.
parent
64598725
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/backend/experimentmodel.py
View file @
8a96e41f
...
...
@@ -119,12 +119,11 @@ class AlgorithmData:
def
dataformat_for_endpoint
(
self
,
endpoint
:
str
)
->
str
:
for
alg_in
,
block_in
in
self
.
input_mapping
.
items
():
if
block_in
==
endpoint
:
return
self
.
input_type_map
[
alg_in
]
return
self
.
input_type_map
.
get
(
alg_in
,
""
)
for
alg_out
,
block_out
in
self
.
output_mapping
.
items
():
if
block_out
==
endpoint
:
return
self
.
output_type_map
[
alg_out
]
return
self
.
output_type_map
.
get
(
alg_out
,
""
)
return
""
def
__repr__
(
self
)
->
str
:
...
...
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