summaryrefslogtreecommitdiff
path: root/gen
diff options
context:
space:
mode:
Diffstat (limited to 'gen')
-rwxr-xr-xgen12
1 files changed, 6 insertions, 6 deletions
diff --git a/gen b/gen
index f974076..c027b36 100755
--- a/gen
+++ b/gen
@@ -108,16 +108,16 @@ resc_lp = [ChipLandPattern.from_ipc(p) for p in ipc_sm_782.data["resc"]["land_pa
capc_lp = [ChipLandPattern.from_ipc(p) for p in ipc_sm_782.data["capc"]["land_patterns"]]
for kind, lps in {"RESC": resc_lp, "CAPC": capc_lp}.items():
- basedir = "IPC-7351-{}".format(kind)
+ basedir = "IPC-7351-{}.pretty".format(kind)
if not os.path.isdir(basedir):
os.mkdir(basedir)
for lp in lps:
- print("{}{}".format(kind, lp.key))
- print("lp={}".format(lp))
- print("lp={}".format(lp.size_x / 8))
+# print("{}_{}".format(kind, lp.key))
+# print("lp={}".format(lp))
+# print("lp={}".format(lp.size_x / 8))
for h in resc_heights.get(lp.key, []):
- key = "{}{}X{:02}".format(kind, lp.key, h)
- print(" " + key)
+ key = "{}_{}x{:02}".format(kind, lp.key, h)
+# print(" " + key)
kicad_mod = chip.render({"lp": lp, "key": key, "h": h})
with open(os.path.join(basedir, "{}.kicad_mod".format(key)), "w") as f:
f.write(kicad_mod)