mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-06 12:51:57 +02:00
[graph] use 'types' module for data models and signals/slots
* store Nodes and Attributes in Models * expose key attributes/methods as Properties/Slots * update command line scripts
This commit is contained in:
parent
4cd9627263
commit
51a9b0e316
4 changed files with 138 additions and 66 deletions
|
@ -26,7 +26,7 @@ graph.update()
|
|||
|
||||
if args.node:
|
||||
# Execute the node
|
||||
node = graph.nodes[args.node]
|
||||
node = graph.node(args.node)
|
||||
if node.isAlreadySubmitted():
|
||||
print('Error: Node is already submitted with status "{}"'.format(node.status.status.name))
|
||||
exit(-1)
|
||||
|
@ -35,6 +35,6 @@ if args.node:
|
|||
else:
|
||||
startNodes = None
|
||||
if args.graph:
|
||||
startNodes = [graph.nodes[args.graph]]
|
||||
startNodes = [graph.nodes(args.graph)]
|
||||
pg.execute(graph, startNodes=startNodes, force=args.force)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue