From 6c37512799d98b4e458852cf60ff7784c3f2d28c Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 3 Dec 2017 12:19:11 +0100 Subject: o Adding 135 height for CAPC2012. --- gen | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gen') diff --git a/gen b/gen index c027b36..ca56e15 100755 --- a/gen +++ b/gen @@ -28,7 +28,7 @@ resc_heights = { capc_heights = { "1005": [15, 35, 37, 40], "1608": [40], - "2012": [40], + "2012": [40, 135], "3216": [40], "3225": [40], "5025": [40], @@ -107,7 +107,7 @@ 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(): +for (kind, lps, heights) in [("RESC", resc_lp, resc_heights), ("CAPC", capc_lp, capc_heights)]: basedir = "IPC-7351-{}.pretty".format(kind) if not os.path.isdir(basedir): os.mkdir(basedir) @@ -115,7 +115,7 @@ for kind, lps in {"RESC": resc_lp, "CAPC": capc_lp}.items(): # print("{}_{}".format(kind, lp.key)) # print("lp={}".format(lp)) # print("lp={}".format(lp.size_x / 8)) - for h in resc_heights.get(lp.key, []): + for h in heights.get(lp.key, []): key = "{}_{}x{:02}".format(kind, lp.key, h) # print(" " + key) kicad_mod = chip.render({"lp": lp, "key": key, "h": h}) -- cgit v1.2.3