diff options
author | jaseg <git@jaseg.de> | 2023-07-05 17:25:28 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-07-05 17:25:28 +0200 |
commit | 9f2f1f97f9f361add53c2fab6901dec4de087b6f (patch) | |
tree | 3ff8190a4841466ab2040e00200f382fbee3b6ac /gerbonara/cad/kicad | |
parent | cb188ac593b6f39b93d26224e9b16faa22babf8d (diff) | |
download | gerbonara-9f2f1f97f9f361add53c2fab6901dec4de087b6f.tar.gz gerbonara-9f2f1f97f9f361add53c2fab6901dec4de087b6f.tar.bz2 gerbonara-9f2f1f97f9f361add53c2fab6901dec4de087b6f.zip |
Improve coil gen, and fix some kicad s-expr issues
Diffstat (limited to 'gerbonara/cad/kicad')
-rw-r--r-- | gerbonara/cad/kicad/footprints.py | 5 | ||||
-rw-r--r-- | gerbonara/cad/kicad/primitives.py | 2 |
2 files changed, 1 insertions, 6 deletions
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) |