aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]gerbolyze0
-rwxr-xr-xgerbolyze.py4
2 files changed, 2 insertions, 2 deletions
diff --git a/gerbolyze b/gerbolyze
index e6c6d67..e6c6d67 100644..100755
--- a/gerbolyze
+++ b/gerbolyze
diff --git a/gerbolyze.py b/gerbolyze.py
index 6ad81aa..9ed30d4 100755
--- a/gerbolyze.py
+++ b/gerbolyze.py
@@ -9,7 +9,7 @@ import shutil
import math
import gerber
-from gerber.render import GerberCairoContext
+from gerber.render.cairo_backend import GerberCairoContext
import numpy as np
import cv2
import enum
@@ -240,7 +240,7 @@ def plot_contours(
x, y = coord
return (x/scale + xbias, y/scale + ybias)
def contour_lines(c):
- return [ Line(map(start), map(end), aperture, level_polarity='dark', units=layer.settings.units)
+ return [ Line(map(start), map(end), aperture, units=layer.settings.units)
for start, end in zip(c, np.vstack((c[1:], c[:1]))) ]
done = []