Skip to content

Commit 630ca29

Browse files
committed
FIX(pipeline): was mixing sub-op attrs while merging
1 parent ea3800e commit 630ca29

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

graphtik/network.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,17 +636,19 @@ def proc_op(op, parent=None):
636636
# to all sub-operations.
637637
#
638638
if kw:
639+
op_kw = kw.copy()
640+
639641
if node_props:
640-
kw["node_props"] = {**op.node_props, **node_props}
642+
op_kw["node_props"] = {**op.node_props, **node_props}
641643

642644
if callable(renamer):
643645

644646
def parent_wrapper(ren_args: RenArgs) -> str:
645647
# Provide RenArgs.parent.
646648
return renamer(ren_args._replace(parent=parent))
647649

648-
kw["renamer"] = parent_wrapper
649-
op = op.withset(**kw)
650+
op_kw["renamer"] = parent_wrapper
651+
op = op.withset(**op_kw)
650652

651653
return op
652654

0 commit comments

Comments
 (0)