summaryrefslogtreecommitdiff
path: root/gerbonara/ipc356.py
diff options
context:
space:
mode:
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