summaryrefslogtreecommitdiff
path: root/gerbonara
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-04 12:55:24 +0200
committerjaseg <git@jaseg.de>2023-07-04 12:55:34 +0200
commite696c09eac8f997fc82bbe281e9b6c76dc02308a (patch)
tree180f009f6dbb038c8e759ac539d0fe266db94061 /gerbonara
parent3bc92876b42dfe0fb80c2485199efdb85624364a (diff)
downloadgerbonara-e696c09eac8f997fc82bbe281e9b6c76dc02308a.tar.gz
gerbonara-e696c09eac8f997fc82bbe281e9b6c76dc02308a.tar.bz2
gerbonara-e696c09eac8f997fc82bbe281e9b6c76dc02308a.zip
kicad: Small file format fixes
Diffstat (limited to 'gerbonara')
-rw-r--r--gerbonara/cad/kicad/pcb.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gerbonara/cad/kicad/pcb.py b/gerbonara/cad/kicad/pcb.py
index 22ad23e..3d668d2 100644
--- a/gerbonara/cad/kicad/pcb.py
+++ b/gerbonara/cad/kicad/pcb.py
@@ -53,7 +53,7 @@ class LayerSettings:
@sexp_type('layer')
class LayerStackupSettings:
- dielectric: bool = False
+ dielectric: Flag() = False
name: str = None
index: int = None
layer_type: Named(str, name='type') = ''
@@ -149,7 +149,7 @@ class TrackSegment:
end: Rename(XYCoord) = field(default_factory=XYCoord)
width: Named(float) = 0.5
layer: Named(str) = 'F.Cu'
- locked: bool = False
+ locked: Flag() = False
net: Named(int) = 0
tstamp: Timestamp = field(default_factory=Timestamp)
@@ -168,7 +168,7 @@ class TrackArc:
end: Rename(XYCoord) = field(default_factory=XYCoord)
width: Named(float) = 0.5
layer: Named(str) = 'F.Cu'
- locked: bool = False
+ locked: Flag() = False
net: Named(int) = 0
tstamp: Timestamp = field(default_factory=Timestamp)
@@ -186,13 +186,13 @@ class TrackArc:
@sexp_type('via')
class Via:
via_type: AtomChoice(Atom.blind, Atom.micro) = None
- locked: bool = False
- at: AtPos = field(default_factory=AtPos)
+ locked: Flag() = False
+ at: Rename(XYCoord) = field(default_factory=XYCoord)
size: Named(float) = 0.8
drill: Named(float) = 0.4
layers: Named(Array(str)) = field(default_factory=list)
- remove_unused_layers: bool = False
- keep_end_layers: bool = False
+ remove_unused_layers: Flag() = False
+ keep_end_layers: Flag() = False
free: Wrap(Flag()) = False
net: Named(int) = 0
tstamp: Timestamp = field(default_factory=Timestamp)