summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-15 17:09:35 +0200
committerjaseg <git@jaseg.de>2023-04-15 17:09:35 +0200
commitfba0507a5565cb6ab6425d01a4a448dcc1788766 (patch)
tree02689fdfb7a3b1fd08760ad1365b32dbbb7f041b
parent2400ff8e5fea41c1f8c6251d37a02209ec253f93 (diff)
downloadgerbonara-fba0507a5565cb6ab6425d01a4a448dcc1788766.tar.gz
gerbonara-fba0507a5565cb6ab6425d01a4a448dcc1788766.tar.bz2
gerbonara-fba0507a5565cb6ab6425d01a4a448dcc1788766.zip
Small bugfix
-rw-r--r--gerbonara/__init__.py1
-rw-r--r--gerbonara/graphic_objects.py2
2 files changed, 2 insertions, 1 deletions
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