diff options
author | jaseg <git@jaseg.de> | 2022-02-02 10:53:19 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-02-02 10:53:19 +0100 |
commit | 0fa713af4be2a5a229a773ca62b894347d6d0b8a (patch) | |
tree | b91d6f2892fe58b892196db377a6eb092984a735 /gerbonara/excellon.py | |
parent | 7473e471dc69d09a35bb0762549cc4f3ab8b04b3 (diff) | |
download | gerbonara-0fa713af4be2a5a229a773ca62b894347d6d0b8a.tar.gz gerbonara-0fa713af4be2a5a229a773ca62b894347d6d0b8a.tar.bz2 gerbonara-0fa713af4be2a5a229a773ca62b894347d6d0b8a.zip |
More doc
Diffstat (limited to 'gerbonara/excellon.py')
-rwxr-xr-x | gerbonara/excellon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/excellon.py b/gerbonara/excellon.py index 96a78be..a6e9566 100755 --- a/gerbonara/excellon.py +++ b/gerbonara/excellon.py @@ -268,7 +268,7 @@ class ExcellonFile(CamFile): # Build tool index tool_map = { id(obj.tool): obj.tool for obj in self.objects } - tools = sorted(tool_map.items(), key=lambda id_tool: (id_tool[1].plated, id_tool[1].diameter, id_tool[1].depth_offset)) + tools = sorted(tool_map.items(), key=lambda id_tool: (id_tool[1].plated, id_tool[1].diameter)) tools = { tool_id: index for index, (tool_id, _tool) in enumerate(tools, start=1) } # FIXME dedup tools @@ -526,7 +526,7 @@ class ExcellonParser(object): params = { m[0]: self.settings.parse_gerber_value(m[1:]) for m in re.findall('[BCFHSTZ][.0-9]+', match[2]) } - self.tools[index] = ExcellonTool(diameter=params.get('C'), depth_offset=params.get('Z'), plated=self.is_plated, + self.tools[index] = ExcellonTool(diameter=params.get('C'), plated=self.is_plated, unit=self.settings.unit) if set(params.keys()) == set('TFSC'): |