From 8181651a75fab99acc986bcf3105779317ac4e2e Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 9 Apr 2023 18:46:36 +0200 Subject: protoserve: Fix bugs, make gerber link more visible --- gerbonara/cad/protoboard.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gerbonara/cad/protoboard.py') diff --git a/gerbonara/cad/protoboard.py b/gerbonara/cad/protoboard.py index a3d616f..b61a0ed 100644 --- a/gerbonara/cad/protoboard.py +++ b/gerbonara/cad/protoboard.py @@ -116,6 +116,10 @@ class PropLayout: return [ unit(leftover * (value or 1.0) / sum_props if not isinstance(value, str) else calculated, MM) for value, calculated in zip(self.proportions, out) ] + @property + def single_sided(self): + return all(elem.single_sided for elem in self.content) + def __str__(self): children = ', '.join( f'{elem}:{width}' for elem, width in zip(self.content, self.proportions)) return f'PropLayout[{self.direction.upper()}]({children})' -- cgit