From 9f2f1f97f9f361add53c2fab6901dec4de087b6f Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 5 Jul 2023 17:25:28 +0200 Subject: Improve coil gen, and fix some kicad s-expr issues --- gerbonara/cad/kicad/footprints.py | 5 ----- gerbonara/cad/kicad/primitives.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'gerbonara/cad') diff --git a/gerbonara/cad/kicad/footprints.py b/gerbonara/cad/kicad/footprints.py index 24488f4..82c0d62 100644 --- a/gerbonara/cad/kicad/footprints.py +++ b/gerbonara/cad/kicad/footprints.py @@ -612,14 +612,9 @@ class Footprint: def __after_parse__(self, parent): - self.properties = {prop.key: prop for prop in self.properties} - for pad in self.pads: pad.footprint = self - def __before_sexp__(self): - self.properties = list(self.properties.values()) - def property_value(self, key, default=_MISSING): if default is not _MISSING and key not in self.properties: return default diff --git a/gerbonara/cad/kicad/primitives.py b/gerbonara/cad/kicad/primitives.py index f066e15..40cb22c 100644 --- a/gerbonara/cad/kicad/primitives.py +++ b/gerbonara/cad/kicad/primitives.py @@ -81,7 +81,7 @@ class Zone: connect_pads: PadConnection = field(default_factory=PadConnection) min_thickness: Named(float) = 0.254 filled_areas_thickness: Named(YesNoAtom()) = True - keepouts: List(ZoneKeepout) = field(default_factory=list) + keepout: ZoneKeepout = field(default_factory=ZoneKeepout) fill: ZoneFill = field(default_factory=ZoneFill) polygon: ZonePolygon = field(default_factory=ZonePolygon) fill_polygons: List(FillPolygon) = field(default_factory=list) -- cgit