Skip to content

Commit

Permalink
Fix port argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
syamajala committed Jan 22, 2022
1 parent 31247ab commit 4ab38f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ami/flowchart/Flowchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def nodeClosed(self, node, input_vars):
self.deleted_nodes.append(name)
self.sigNodeChanged.emit(node)
if ctrl.features.remove_plot(name):
await self.ctrl.graphCommHandler.updatePlots(ctrl.features.plots)
await ctrl.graphCommHandler.updatePlots(ctrl.features.plots)
elif isinstance(node, SourceNode):
await ctrl.features.discard(name, name)
await ctrl.graphCommHandler.unview(name)
Expand Down
4 changes: 3 additions & 1 deletion ami/flowchart/Node.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ def connected(self, localTerm, remoteTerm, pos=None):
else:
self._input_vars[localTerm.name()] = '.'.join([node.name(), remoteTerm.name()])

self.changed = localTerm.isInput()
if not self.changed:
self.changed = localTerm.isInput()

self.sigTerminalConnected.emit(localTerm, remoteTerm)

def disconnected(self, localTerm, remoteTerm):
Expand Down
6 changes: 3 additions & 3 deletions ami/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ def build_parser():
help='aggregates graph and store related variables into structured data when exporting'
)

comm_group = parser.add_mutually_exclusive_group()

comm_group.add_argument(
parser.add_argument(
'-p',
'--port',
type=int,
default=BasePort,
help='use tcp for communication using the specified starting port'
)

comm_group = parser.add_mutually_exclusive_group()

comm_group.add_argument(
'-i',
'--ipc-dir',
Expand Down

0 comments on commit 4ab38f6

Please sign in to comment.