From 866eaa8b022c5583f05b89e0fe0ee5b2e053e37b Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 2 Nov 2018 11:50:28 -0700 Subject: [PATCH] Add debug message when routes are diagonal. --- compiler/base/route.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/base/route.py b/compiler/base/route.py index 0397e383..0b596a1a 100644 --- a/compiler/base/route.py +++ b/compiler/base/route.py @@ -69,7 +69,7 @@ class route(design): via_size = [self.num_vias]*2 self.obj.add_via(self.layer_stack,via_offset,size=via_size,rotate=90) elif p0.x != p1.x and p0.y != p1.y: # diagonal! - debug.error("Non-changing direction!") + debug.error("Non-changing direction! {}".format(self.path)) else: # this will draw an extra corner at the end but that is ok self.draw_corner_wire(p1)