You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the node's function name to NodeSnapshot (#5663)
* Add the node's function name to NodeSnapshot
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
* Make func_name keyword-only in NodeSnapshot and add tests for its behavior
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
* Enforce func_name as a keyword-only argument in NodeSnapshot and add a test for TypeError
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
---------
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Co-authored-by: Ravi Kumar Pilla <ravi_kumar_pilla@mckinsey.com>
Copy file name to clipboardExpand all lines: docs/inspect/inspect-project.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,14 @@ default_pipeline = next(p for p in snapshot.pipelines if p.name == "__default__"
90
90
91
91
for node in default_pipeline.nodes:
92
92
print(node.name)
93
+
print(" func_name:", node.func_name)
93
94
print(" namespace:", node.namespace)
94
95
print(" inputs: ", node.inputs)
95
96
print(" outputs: ", node.outputs)
96
97
print(" tags: ", node.tags)
97
98
```
98
99
99
-
Each node is represented as a [`NodeSnapshot`][kedro.inspection.models.NodeSnapshot] with `name`, `namespace`, `inputs`, `outputs`, and `tags` fields.
100
+
Each node is represented as a [`NodeSnapshot`][kedro.inspection.models.NodeSnapshot] with `name`, `func_name`, `namespace`, `inputs`, `outputs`, and `tags` fields.
0 commit comments