diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-01 14:40:10 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-01 14:40:10 +0100 |
commit | f650fdecff9bccd6ddfb1c1c7eb788b8fabc0859 (patch) | |
tree | dd51881eeb82abe8394576f24f7a6fa0995e2669 /gen | |
parent | a78fcdcac4abeec85a2e2eb6b4e48de6559d6e9b (diff) | |
download | IPC-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-x | gen | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) |