mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 03:57:28 +02:00
[core] Graph.canSubmitOrCompute: add documentation
This commit is contained in:
parent
94038736fe
commit
e91dab1a63
1 changed files with 9 additions and 0 deletions
|
@ -944,6 +944,15 @@ class Graph(BaseObject):
|
|||
|
||||
@Slot(Node, result=int)
|
||||
def canSubmitOrCompute(self, startNode):
|
||||
"""
|
||||
Check if a node can be submitted/computed.
|
||||
|
||||
Returns:
|
||||
int: 0 = cannot be submitted or computed /
|
||||
1 = can be computed /
|
||||
2 = can be submitted /
|
||||
3 = can be submitted and computed
|
||||
"""
|
||||
if startNode.isAlreadySubmittedOrFinished():
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue