summaryrefslogtreecommitdiff
path: root/gerber/excellon.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-xgerber/excellon.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py
index bcd136e..430ee7d 100755
--- a/gerber/excellon.py
+++ b/gerber/excellon.py
@@ -113,6 +113,9 @@ class DrillHit(object):
def offset(self, x_offset, y_offset):
self.position = tuple(map(operator.add, self.position, (x_offset, y_offset)))
+
+ def __str__(self):
+ return 'Hit (%f, %f) {%s}' % (self.position[0], self.position[1], self.tool)
class DrillSlot(object):
"""