diff options
author | jaseg <git@jaseg.de> | 2023-03-23 23:51:36 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-03-23 23:51:36 +0100 |
commit | 2a3deb6c00483b324a6ab22a85729807549f7864 (patch) | |
tree | 857defe939a63e083b0ba20f090da907a4b420f4 /gerbonara | |
parent | f7aa6657e721141441ed44d78ac307a0ca1371c1 (diff) | |
download | gerbonara-2a3deb6c00483b324a6ab22a85729807549f7864.tar.gz gerbonara-2a3deb6c00483b324a6ab22a85729807549f7864.tar.bz2 gerbonara-2a3deb6c00483b324a6ab22a85729807549f7864.zip |
Fix crash in gerber to excellon conversion
Diffstat (limited to 'gerbonara')
-rw-r--r-- | gerbonara/rs274x.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |