diff options
author | jaseg <git@jaseg.de> | 2023-03-23 23:51:36 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-10 23:57:15 +0200 |
commit | 900de13d8c84a76b457c6973aed4aaf069523d6d (patch) | |
tree | 8f6b63910e0ff207dd4d9d6a6ef757f592d38e78 | |
parent | b2ba39e1ebd612cfb37a15d0f8938b94cd1249d8 (diff) | |
download | gerbonara-900de13d8c84a76b457c6973aed4aaf069523d6d.tar.gz gerbonara-900de13d8c84a76b457c6973aed4aaf069523d6d.tar.bz2 gerbonara-900de13d8c84a76b457c6973aed4aaf069523d6d.zip |
Fix crash in gerber to excellon conversion
-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)) |