Added Pre and Post process functions on the Base Node

Added Pre and Post process functions on the Node Description which can be utilised by the client nodes
This commit is contained in:
Vivek Verma 2024-09-17 09:28:49 +05:30 committed by Fabien Castan
parent 03bd5180cf
commit f2b033a7bb
2 changed files with 20 additions and 1 deletions

View file

@ -1030,13 +1030,16 @@ class BaseNode(BaseObject):
self._chunks[iteration].process()
def preprocess(self):
pass
# Invoke the Node Description's pre-process for the Client Node to prep it's processing
self.nodeDesc.preprocess(self)
def process(self, forceCompute=False):
for chunk in self._chunks:
chunk.process(forceCompute)
def postprocess(self):
# Invoke the post process on Client Node to execute after the processing on the node is completed
self.nodeDesc.postprocess(self)
self.saveOutputAttr()
def updateOutputAttr(self):