From 2a3deb6c00483b324a6ab22a85729807549f7864 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 23 Mar 2023 23:51:36 +0100 Subject: Fix crash in gerber to excellon conversion --- gerbonara/rs274x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py index ce8b12a..0c50991 100644 --- a/gerbonara/rs274x.py +++ b/gerbonara/rs274x.py @@ -85,7 +85,7 @@ class GerberFile(CamFile): not isinstance(obj.aperture, apertures.CircleAperture): raise ValueError(f'Cannot convert {obj} to excellon!') - if not (new_tool := new_tools.get(obj.aperture)): + if not (new_tool := new_tools.get(id(obj.aperture))): # TODO plating? new_tool = new_tools[id(obj.aperture)] = apertures.ExcellonTool(obj.aperture.diameter, plated=plated, unit=obj.aperture.unit) new_objs.append(dataclasses.replace(obj, aperture=new_tool)) -- cgit