summaryrefslogtreecommitdiff
path: root/gerbonara/ipc356.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-05 12:34:28 +0100
committerjaseg <git@jaseg.de>2022-02-05 12:34:28 +0100
commit57941b1b76ffbdb9a5eeb9fef5e3c2365e3a4b84 (patch)
treeb75d54db39ad522ee0ee6ee0d3b3679d84247bd6 /gerbonara/ipc356.py
parent4cbda84aa61158c06acc78aac4b318bbea5b6214 (diff)
downloadgerbonara-57941b1b76ffbdb9a5eeb9fef5e3c2365e3a4b84.tar.gz
gerbonara-57941b1b76ffbdb9a5eeb9fef5e3c2365e3a4b84.tar.bz2
gerbonara-57941b1b76ffbdb9a5eeb9fef5e3c2365e3a4b84.zip
Arc approx WIP
Diffstat (limited to 'gerbonara/ipc356.py')
-rw-r--r--gerbonara/ipc356.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gerbonara/ipc356.py b/gerbonara/ipc356.py
index 175cb5e..ae341be 100644
--- a/gerbonara/ipc356.py
+++ b/gerbonara/ipc356.py
@@ -95,6 +95,13 @@ class Netlist(CamFile):
for obj in self.objects:
obj.rotate(angle, cx, cy, unit)
+ def __str__(self):
+ name = f'{self.original_path.name} ' if self.original_path else ''
+ return f'<IPC-356 Netlist {name}with {len(self.test_records)} records, {len(self.conductors)} conductors and {len(self.outlines)} outlines>'
+
+ def __repr__(self):
+ return str(self)
+
@property
def objects(self):
yield from self.test_records