diff options
author | jaseg <git@jaseg.de> | 2025-08-22 13:24:02 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2025-08-22 13:24:34 +0200 |
commit | 379cf273cb39813aa8819a7c81bf4d2e6de0f948 (patch) | |
tree | 8f5078d5e462e5eab50db44c2046479ffdeef442 /examples/highlight_outline.py | |
parent | da6d8349faa5ed96e73b36be524b9973b004ebf8 (diff) | |
download | gerbonara-379cf273cb39813aa8819a7c81bf4d2e6de0f948.tar.gz gerbonara-379cf273cb39813aa8819a7c81bf4d2e6de0f948.tar.bz2 gerbonara-379cf273cb39813aa8819a7c81bf4d2e6de0f948.zip |
Fix out-of-date documentationmain
Diffstat (limited to 'examples/highlight_outline.py')
-rw-r--r-- | examples/highlight_outline.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/highlight_outline.py b/examples/highlight_outline.py index 9d89ce2..0f600e3 100644 --- a/examples/highlight_outline.py +++ b/examples/highlight_outline.py @@ -10,7 +10,7 @@ from gerbonara.utils import MM from gerbonara.utils import rotate_point def highlight_outline(input_dir, output_dir): - stack = LayerStack.from_directory(input_dir) + stack = LayerStack.open(input_dir) outline = [] for obj in stack.outline.objects: @@ -28,7 +28,6 @@ def highlight_outline(input_dir, output_dir): marker_nx, marker_ny = math.sin(marker_angle), math.cos(marker_angle) ap = CircleAperture(0.1, unit=MM) - stack['top silk'].apertures.append(ap) for line in outline: cx, cy = (line.x1 + line.x2)/2, (line.y1 + line.y2)/2 |