Skip to content

Commit

Permalink
Merge pull request #1767 from alicevision/bugfix-tonode-submit
Browse files Browse the repository at this point in the history
removed duplicated call to findnodes
  • Loading branch information
fabiencastan authored Sep 7, 2022
2 parents 5ad4c82 + f491b5a commit 267aff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/meshroom_batch
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ if args.submit:
if not args.save:
raise ValueError('Need to save the project to file to 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:
# find end nodes (None will compute all graph)
toNodes = graph.findNodes(args.toNode) if args.toNode else None
# start computation
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)

2 changes: 1 addition & 1 deletion meshroom/core/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,6 @@ def submit(graphFile, submitter, toNode=None):
Submit the given graph via the given submitter.
"""
graph = loadGraph(graphFile)
toNodes = graph.findNodes([toNode]) if toNode else None
toNodes = graph.findNodes(toNode) if toNode else None
submitGraph(graph, submitter, toNodes)

0 comments on commit 267aff5

Please sign in to comment.