diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-12 12:38:40 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-12 12:38:40 -0400 |
commit | 8c5c7ec8bbc8a074884ef04b566f9c0ecd6e78bb (patch) | |
tree | a9032538e4a96f11a9ec16d1c761f4d8862529a8 /gerber/excellon.py | |
parent | d9018da412470053a063b7b28b5e32529fc573f6 (diff) | |
download | gerbonara-8c5c7ec8bbc8a074884ef04b566f9c0ecd6e78bb.tar.gz gerbonara-8c5c7ec8bbc8a074884ef04b566f9c0ecd6e78bb.tar.bz2 gerbonara-8c5c7ec8bbc8a074884ef04b566f9c0ecd6e78bb.zip |
update docs and example images
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-x | gerber/excellon.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py index f5d6c29..13aacc6 100755 --- a/gerber/excellon.py +++ b/gerber/excellon.py @@ -39,6 +39,7 @@ def read(filename): -------
file : :class:`gerber.excellon.ExcellonFile`
An ExcellonFile created from the specified file.
+
"""
detected_settings = detect_excellon_format(filename)
settings = FileSettings(**detected_settings)
@@ -317,7 +318,7 @@ def detect_excellon_format(filename): hole_area = 0.0
for hit in p.hits:
tool = hit[0]
- hole_area += math.pow(math.pi * tool.diameter, 2)
+ hole_area += math.pow(math.pi * tool.diameter / 2., 2)
results[key] = (size, p.hole_count, hole_area)
except:
pass
|