fixup! [AutoTool] pass in kwargs to straight fn call

This commit is contained in:
Jan Petykiewicz 2025-11-13 00:08:32 -08:00
parent d37e6b873c
commit 2bf44f334a

View File

@ -606,7 +606,7 @@ class AutoTool(Tool, metaclass=ABCMeta):
else: else:
out_ptype_actual = self.default_out_ptype out_ptype_actual = self.default_out_ptype
data = self.LData(straight_length, straight, straight_kwargs, ccw, bend, in_transition, b_transition, out_transition) data = self.LData(straight_length, straight, kwargs, ccw, bend, in_transition, b_transition, out_transition)
out_port = Port((length, bend_run), rotation=bend_angle, ptype=out_ptype_actual) out_port = Port((length, bend_run), rotation=bend_angle, ptype=out_ptype_actual)
return out_port, data return out_port, data
@ -621,7 +621,7 @@ class AutoTool(Tool, metaclass=ABCMeta):
""" """
Render an L step into a preexisting tree Render an L step into a preexisting tree
""" """
pat = tree.top() pat = tree.top_pattern()
if data.in_transition: if data.in_transition:
pat.plug(data.in_transition.abstract, {port_names[1]: data.in_transition.their_port_name}) pat.plug(data.in_transition.abstract, {port_names[1]: data.in_transition.their_port_name})
if not numpy.isclose(data.straight_length, 0): if not numpy.isclose(data.straight_length, 0):