From 379cf273cb39813aa8819a7c81bf4d2e6de0f948 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 22 Aug 2025 13:24:02 +0200 Subject: Fix out-of-date documentation --- examples/highlight_outline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/highlight_outline.py') 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 -- cgit