pcdshub / adviewer

AreaDetector configuration (and one day viewing) tool / based on ophyd, typhon, and qtpynodeeditor
Other
0 stars 3 forks source link

FIX: do not re-create connections the user just made #9

Closed klauer closed 5 years ago

klauer commented 5 years ago

Avoids the following log message for every user connection:

ERROR:adviewer.graph:Failed to connect terminals ROI4 -> PROC1
Traceback (most recent call last):
  File "/Users/klauer/docs/Repos/adviewer/adviewer/graph.py", line 420, in _ports_updated
    dest_node['input'][0],
  File "/Users/klauer/docs/Repos/qtpynodeeditor/qtpynodeeditor/flow_scene.py", line 462, in create_connection
    connection = Connection(port_a=port_a, port_b=port_b, style=self._style)
  File "/Users/klauer/docs/Repos/qtpynodeeditor/qtpynodeeditor/connection.py", line 56, in __init__
    'Specified ports already connected')
qtpynodeeditor.exceptions.PortsAlreadyConnectedError: Specified ports already connected