summaryrefslogtreecommitdiff
path: root/gen
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-12-01 14:40:10 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2017-12-01 14:40:10 +0100
commitf650fdecff9bccd6ddfb1c1c7eb788b8fabc0859 (patch)
treedd51881eeb82abe8394576f24f7a6fa0995e2669 /gen
parenta78fcdcac4abeec85a2e2eb6b4e48de6559d6e9b (diff)
downloadIPC-7351-footprints-generator-f650fdecff9bccd6ddfb1c1c7eb788b8fabc0859.tar.gz
IPC-7351-footprints-generator-f650fdecff9bccd6ddfb1c1c7eb788b8fabc0859.tar.bz2
IPC-7351-footprints-generator-f650fdecff9bccd6ddfb1c1c7eb788b8fabc0859.tar.xz
IPC-7351-footprints-generator-f650fdecff9bccd6ddfb1c1c7eb788b8fabc0859.zip
o Trying with names that are a bit easier to read.
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)