summaryrefslogtreecommitdiff
path: root/gerbonara/excellon.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-02-21 00:44:09 +0100
committerjaseg <git@jaseg.de>2023-02-21 00:44:09 +0100
commit9a6bc691cb0fa96d50a93e6bce60161a4fc6940d (patch)
tree3792a82fef4c4fe2f87b7ff511cc1b338e6e1af7 /gerbonara/excellon.py
parenta374483998baff2fab4c43027c83f8bf97e5fdf5 (diff)
downloadgerbonara-9a6bc691cb0fa96d50a93e6bce60161a4fc6940d.tar.gz
gerbonara-9a6bc691cb0fa96d50a93e6bce60161a4fc6940d.tar.bz2
gerbonara-9a6bc691cb0fa96d50a93e6bce60161a4fc6940d.zip
cli: Add merge command
Diffstat (limited to 'gerbonara/excellon.py')
-rwxr-xr-xgerbonara/excellon.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gerbonara/excellon.py b/gerbonara/excellon.py
index 31ff53f..6f816b9 100755
--- a/gerbonara/excellon.py
+++ b/gerbonara/excellon.py
@@ -245,7 +245,7 @@ class ExcellonFile(CamFile):
def append(self, obj_or_comment):
""" Add a :py:class:`.GraphicObject` or a comment (str) to this file. """
- if isinstnace(obj_or_comment, str):
+ if isinstance(obj_or_comment, str):
self.comments.append(obj_or_comment)
else:
self.objects.append(obj_or_comment)
@@ -396,10 +396,10 @@ class ExcellonFile(CamFile):
if settings is None:
if self.import_settings:
settings = self.import_settings.copy()
+ settings.zeros = None
+ settings.number_format = (3,5)
else:
- settings = FileSettings()
- settings.zeros = None
- settings.number_format = (3,5)
+ settings = FileSettings.defaults()
return '\n'.join(self._generate_statements(settings, drop_comments=drop_comments)).encode('utf-8')
def save(self, filename, settings=None, drop_comments=True):