From 0ff8f24e17008cd9d9536d2f7922fd9ef6700d66 Mon Sep 17 00:00:00 2001 From: Neil Gershenfeld <gersh@cba.mit.edu> Date: Thu, 9 Jan 2020 12:52:08 -0500 Subject: [PATCH] wip --- python/frep.py | 4 ++-- python/pcb.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/frep.py b/python/frep.py index 0ac053c..d2d67a1 100755 --- a/python/frep.py +++ b/python/frep.py @@ -68,14 +68,14 @@ X = outer(ones(y.size),x) Y = outer(y,ones(x.size)) if (len(frep['layers']) == 1): Z = frep['layers'][0] - print " z =",Z + print(" z =",Z) f = eval(frep['function']).astype(uint32) else: f = zeros((y.size,x.size),dtype=uint32) zmin = min(frep['layers']) zmax = max(frep['layers']) for Z in frep['layers']: - print " z =",Z + print(" z =",Z) i = int(255*(Z-zmin)/(zmax-zmin)) | (255 << 8) | (255 << 16) flayer = i & (eval(frep['function'])).astype(uint32) f = f + flayer diff --git a/python/pcb.py b/python/pcb.py index 6444c2f..666eefd 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -20,10 +20,10 @@ # uncomment for desired output: # -output = "top, labels, and exterior" +#output = "top, labels, and exterior" #output = "top, labels, holes, and exterior" #output = "top, bottom, labels, and exterior" -#output = "top, bottom, labels, holes, and exterior" +output = "top, bottom, labels, holes, and exterior" #output = "top traces" #output = "top traces and exterior" #output = "bottom traces reversed" -- GitLab