[core] Node: Status should be NONE when there is no chunk

Prior to this commit, nodes with a varying number of chunks were initialized with an empty list of chunks (as expected), but with a global status that was set to `SUCCESS` instead of `NONE`. This caused issue on the graphical side as `SUCCESS` is interpreted as the status for nodes that have been successfully computed.
This commit is contained in:
Candice Bentéjac 2025-03-12 10:40:46 +00:00
parent 08614a398d
commit df7e6f8845

View file

@ -1174,6 +1174,9 @@ class BaseNode(BaseObject):
"""
if isinstance(self.nodeDesc, desc.InputNode):
return Status.INPUT
if not self._chunks:
return Status.NONE
chunksStatus = [chunk.status.status for chunk in self._chunks]
anyOf = (Status.ERROR, Status.STOPPED, Status.KILLED,