diff options
author | Hiroshi Murayama <opiopan@gmail.com> | 2019-08-17 23:38:30 +0900 |
---|---|---|
committer | Hiroshi Murayama <opiopan@gmail.com> | 2019-08-17 23:38:30 +0900 |
commit | 22f4c8a3f5bdce243908f3787216344b200902df (patch) | |
tree | c1d1dfb8dbf72141e716d9e0c99b3d719df0b9a5 /gerberex/composition.py | |
parent | 4c7aef6a8215758e8b91b5ad118f45694d842472 (diff) | |
download | gerbonara-22f4c8a3f5bdce243908f3787216344b200902df.tar.gz gerbonara-22f4c8a3f5bdce243908f3787216344b200902df.tar.bz2 gerbonara-22f4c8a3f5bdce243908f3787216344b200902df.zip |
router mode and G85 slot in excellon file is supported
Diffstat (limited to 'gerberex/composition.py')
-rw-r--r-- | gerberex/composition.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gerberex/composition.py b/gerberex/composition.py index 29725ba..7f691f5 100644 --- a/gerberex/composition.py +++ b/gerberex/composition.py @@ -150,10 +150,7 @@ class DrillComposition(Composition): yield ToolSelectionStmt(t.number).to_excellon(self.settings) for h in self.hits: if h.tool.number == t.number: - if type(h) == DrillSlot: - yield SlotStmt(*h.start, *h.end).to_excellon(self.settings) - elif type(h) == DrillHit: - yield CoordinateStmt(*h.position).to_excellon(self.settings) + yield h.to_excellon(self.settings) for num, statement in self.dxf_statements: if num == t.number: yield statement.to_excellon(self.settings) |