From 40e55a9067983432dab48c101ac0f82c052a117a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Fri, 14 Nov 2025 21:28:02 -0800 Subject: [PATCH] [SimpleTool/AutoTool] clarify some error messages --- masque/builder/tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/masque/builder/tools.py b/masque/builder/tools.py index 04fb18e..2b3c6cf 100644 --- a/masque/builder/tools.py +++ b/masque/builder/tools.py @@ -308,7 +308,7 @@ class SimpleTool(Tool, metaclass=ABCMeta): if straight_length < 0: raise BuildError( - f'Asked to draw path with total length {length:,g}, shorter than required bends ({bend_dxy[0]:,})' + f'Asked to draw L-path with total length {length:,g}, shorter than required bends ({bend_dxy[0]:,})' ) data = self.LData(straight_length, kwargs, ccw) @@ -550,7 +550,7 @@ class AutoTool(Tool, metaclass=ABCMeta): else: # Failed to break raise BuildError( - f'Asked to draw path with total length {length:,g}, shorter than required bends and transitions:\n' + f'Asked to draw L-path with total length {length:,g}, shorter than required bends and transitions:\n' f'bend: {bend_dxy[0]:,g} in_trans: {itrans_dxy[0]:,g}\n' f'out_trans: {otrans_dxy[0]:,g} bend_trans: {btrans_dxy[0]:,g}' ) @@ -740,7 +740,7 @@ class PathTool(Tool, metaclass=ABCMeta): if straight_length < 0: raise BuildError( - f'Asked to draw path with total length {length:,g}, shorter than required bend: {bend_dxy[0]:,g}' + f'Asked to draw L-path with total length {length:,g}, shorter than required bend: {bend_dxy[0]:,g}' ) data = numpy.array((length, bend_run)) out_port = Port(data, rotation=bend_angle, ptype=self.ptype)