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
c2875a0e
Commit
c2875a0e
authored
Jun 17, 2020
by
Flavio TARSETTI
Browse files
Merge branch '268_fix_connection_model_handling' into 'master'
Fix connection model handling Closes
#268
See merge request
!134
parents
64598725
d9ff3b15
Pipeline
#40525
passed with stages
in 11 minutes and 59 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
beat/editor/backend/experimentmodel.py
View file @
c2875a0e
...
...
@@ -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
:
...
...
beat/editor/widgets/assetwidget.py
View file @
c2875a0e
...
...
@@ -296,6 +296,8 @@ class AssetWidget(QWidget):
self
.
save_button
.
setEnabled
(
True
)
self
.
__update_editors_icon
(
False
)
self
.
watcher
.
addPath
(
asset
.
declaration_path
)
if
asset
.
type
==
AssetType
.
EXPERIMENT
:
self
.
experiment_model
.
load_experiment
(
asset
)
self
.
currentAssetChanged
.
emit
(
asset
)
elif
asset
:
self
.
loadAsset
(
asset
)
...
...
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