From 30982d742b58352ccfb25699dd5dbe35186bb71f Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 3 Jun 2024 16:53:03 -0700 Subject: [PATCH] make sure kwargs get passed into gen_straight() --- masque/builder/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/builder/tools.py b/masque/builder/tools.py index 3733ad1..1b7a74f 100644 --- a/masque/builder/tools.py +++ b/masque/builder/tools.py @@ -294,7 +294,7 @@ class BasicTool(Tool, metaclass=ABCMeta): ipat, iport_theirs, _iport_ours = data.in_transition pat.plug(ipat, {port_names[1]: iport_theirs}) if not numpy.isclose(data.straight_length, 0): - straight = tree <= {SINGLE_USE_PREFIX + 'straight': gen_straight(data.straight_length)} + straight = tree <= {SINGLE_USE_PREFIX + 'straight': gen_straight(data.straight_length, **kwargs)} pat.plug(straight, {port_names[1]: sport_in}) if data.ccw is not None: bend, bport_in, bport_out = self.bend