summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-12-20 23:54:20 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-12-20 23:54:20 -0500
commitaf5541ac93b222c05229ee05c9def8dbae5f6e25 (patch)
tree947d56c540c66e589dff563ccb367c47547dfdad /gerber/rs274x.py
parentd1598b46c91ee36719460d49d7ba2ed5ecd0ef45 (diff)
downloadgerbonara-af5541ac93b222c05229ee05c9def8dbae5f6e25.tar.gz
gerbonara-af5541ac93b222c05229ee05c9def8dbae5f6e25.tar.bz2
gerbonara-af5541ac93b222c05229ee05c9def8dbae5f6e25.zip
Allow renderer to write to memory per #38
Some updates to rendering colors/themes
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index d9fd317..319d58f 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -110,16 +110,13 @@ class GerberFile(CamFile):
def bounds(self):
min_x = min_y = 1000000
max_x = max_y = -1000000
-
for stmt in [stmt for stmt in self.statements if isinstance(stmt, CoordStmt)]:
if stmt.x is not None:
min_x = min(stmt.x, min_x)
max_x = max(stmt.x, max_x)
-
if stmt.y is not None:
min_y = min(stmt.y, min_y)
max_y = max(stmt.y, max_y)
-
return ((min_x, max_x), (min_y, max_y))
def write(self, filename, settings=None):