mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 11:46:45 +02:00
removed duplicated call to findnodes
This commit is contained in:
parent
aa1edf8d7b
commit
f491b5a77b
2 changed files with 4 additions and 2 deletions
|
@ -193,8 +193,10 @@ if args.submit:
|
||||||
if not args.save:
|
if not args.save:
|
||||||
raise ValueError('Need to save the project to file to submit on renderfarm.')
|
raise ValueError('Need to save the project to file to submit on renderfarm.')
|
||||||
# submit on renderfarm
|
# submit on renderfarm
|
||||||
meshroom.core.graph.submit(args.save, args.submitter, toNode=toNodes)
|
meshroom.core.graph.submit(args.save, args.submitter, toNode=args.toNode)
|
||||||
elif args.compute:
|
elif args.compute:
|
||||||
|
# find end nodes (None will compute all graph)
|
||||||
|
toNodes = graph.findNodes(args.toNode) if args.toNode else None
|
||||||
# start computation
|
# start computation
|
||||||
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
|
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
|
||||||
|
|
||||||
|
|
|
@ -1315,6 +1315,6 @@ def submit(graphFile, submitter, toNode=None):
|
||||||
Submit the given graph via the given submitter.
|
Submit the given graph via the given submitter.
|
||||||
"""
|
"""
|
||||||
graph = loadGraph(graphFile)
|
graph = loadGraph(graphFile)
|
||||||
toNodes = graph.findNodes([toNode]) if toNode else None
|
toNodes = graph.findNodes(toNode) if toNode else None
|
||||||
submitGraph(graph, submitter, toNodes)
|
submitGraph(graph, submitter, toNodes)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue