Commit c2875a0e authored by Flavio TARSETTI's avatar 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
......@@ -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:
......
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment