From f650fdecff9bccd6ddfb1c1c7eb788b8fabc0859 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 1 Dec 2017 14:40:10 +0100 Subject: o Trying with names that are a bit easier to read. --- gen | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gen') 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) -- cgit v1.2.3