summaryrefslogtreecommitdiff
path: root/gerbonara/excellon.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-04 22:10:19 +0100
committerjaseg <git@jaseg.de>2022-02-04 22:10:19 +0100
commit4cbda84aa61158c06acc78aac4b318bbea5b6214 (patch)
tree7b5724b019324bbadd862076ece399a73a670b90 /gerbonara/excellon.py
parenteaf4f21ce65081da0490a41ee1829b4ec8319109 (diff)
downloadgerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.tar.gz
gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.tar.bz2
gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.zip
More doc, fix tests
Diffstat (limited to 'gerbonara/excellon.py')
-rwxr-xr-xgerbonara/excellon.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/gerbonara/excellon.py b/gerbonara/excellon.py
index 575e4a2..8b8744f 100755
--- a/gerbonara/excellon.py
+++ b/gerbonara/excellon.py
@@ -196,9 +196,6 @@ class ExcellonFile(CamFile):
def __repr__(self):
return str(self)
- def __bool__(self):
- return not self.is_empty
-
@property
def is_plated(self):
""" Test if *all* holes or slots in this file are plated. """
@@ -385,10 +382,6 @@ class ExcellonFile(CamFile):
for obj in self.objects:
obj.rotate(angle, cx, cy, unit=unit)
- @property
- def is_empty(self):
- return not self.objects
-
def __len__(self):
return len(self.objects)
@@ -540,7 +533,6 @@ class ExcellonParser(object):
# TODO check first command in file is "start of header" command.
try:
- print(f'{self.settings.number_format} {lineno} "{line}"')
if not self.exprs.handle(self, line):
raise ValueError('Unknown excellon statement:', line)
except Exception as e: