attr = G.node[node]
fn = attr["output"]
logger.debug("Executing {}".format(node))
ifcallable(fn):
G.node[node] = cls._run(fn, node, G)
result = {k:G.node[k]["output"] for k in G.graph["outputs"]}
return result
@staticmethod
After Change
if"operation" in attr:
op = attr["operation"]
G.node[node] = cls._run(op, node, G)
elif "output" not in attr:
raise ValueError("Generative graph has no op or output present")// Make a result dict based on the requested outputs
result = {k:G.node[k]["output"] for k in G.graph["outputs"]}
return result