diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-04-24 10:54:13 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-04-24 10:54:13 -0400 |
commit | 390838fc8b70c9b105fdc1d3e35a4533b27faa83 (patch) | |
tree | c07ae5b56ccb13bce694ce1b51b4eab19ace0622 /gerber/excellon.py | |
parent | a3cce62be741cb2bc1e65165ba4f0b45c8838b60 (diff) | |
download | gerbonara-390838fc8b70c9b105fdc1d3e35a4533b27faa83.tar.gz gerbonara-390838fc8b70c9b105fdc1d3e35a4533b27faa83.tar.bz2 gerbonara-390838fc8b70c9b105fdc1d3e35a4533b27faa83.zip |
Fix for #25. Checking was happening at the gerber/excellon file level, but I added units checking at the primitive level so the use case shown in the example is covered. Might want to throw a bunch more assertions in the test code (i started doing a few) to cover multiple calls to unit conversion functions
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-x | gerber/excellon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py index 930b683..0f70de7 100755 --- a/gerber/excellon.py +++ b/gerber/excellon.py @@ -81,7 +81,7 @@ class ExcellonFile(CamFile): filename=filename)
self.tools = tools
self.hits = hits
- self.primitives = [Drill(position, tool.diameter)
+ self.primitives = [Drill(position, tool.diameter, units=settings.units)
for tool, position in self.hits]
@property
|