diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-06-28 23:15:20 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-06-28 23:15:20 +0800 |
commit | b140f5e4767912110f69cbda8417a8e076345b70 (patch) | |
tree | bd9c74ddff137aec3e56e9179999ed4946902af3 /gerber/gerber_statements.py | |
parent | ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d (diff) | |
download | gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.tar.gz gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.tar.bz2 gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.zip |
Don't flash G03-only commands
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 234952e..881e5bc 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -1022,6 +1022,16 @@ class CoordStmt(Statement): coord_str += 'Op: %s' % op return '<Coordinate Statement: %s>' % coord_str + + @property + def only_function(self): + """ + Returns if the statement only set the function. + """ + + # TODO I would like to refactor this so that the function is handled separately and then + # TODO this isn't required + return self.function != None and self.op == None and self.x == None and self.y == None and self.i == None and self.j == None class ApertureStmt(Statement): |