From 9a6bc691cb0fa96d50a93e6bce60161a4fc6940d Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 21 Feb 2023 00:44:09 +0100 Subject: cli: Add merge command --- gerbonara/excellon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gerbonara/excellon.py') 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): -- cgit