From fba0507a5565cb6ab6425d01a4a448dcc1788766 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 15 Apr 2023 17:09:35 +0200 Subject: Small bugfix --- gerbonara/__init__.py | 1 + gerbonara/graphic_objects.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'gerbonara') diff --git a/gerbonara/__init__.py b/gerbonara/__init__.py index 32d74e1..ea9a053 100644 --- a/gerbonara/__init__.py +++ b/gerbonara/__init__.py @@ -29,5 +29,6 @@ from .rs274x import GerberFile from .excellon import ExcellonFile from .ipc356 import Netlist from .layers import LayerStack +from .utils import MM, Inch __version__ = '1.0.0' diff --git a/gerbonara/graphic_objects.py b/gerbonara/graphic_objects.py index 7dd9199..d035fb8 100644 --- a/gerbonara/graphic_objects.py +++ b/gerbonara/graphic_objects.py @@ -281,7 +281,7 @@ class Region(GraphicObject): cut-in, the region is allowed to touch (but never overlap!) itself. """ - def __init__(self, outline=None, arc_centers=None, *, unit, polarity_dark): + def __init__(self, outline=None, arc_centers=None, *, unit=MM, polarity_dark=True): self.unit = unit self.polarity_dark = polarity_dark self.outline = [] if outline is None else outline -- cgit