summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/cam.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-15 15:44:34 +0100
committerjaseg <git@jaseg.de>2022-01-15 15:44:34 +0100
commit69f360be7a71888ed64ca3677d5d06c2b3cfbb3c (patch)
tree2c658159ee3655facf7035bbd536be4574894624 /gerbonara/gerber/cam.py
parent2ce0ff81ae50053022cc091b9db2d44f5b3ddc63 (diff)
downloadgerbonara-69f360be7a71888ed64ca3677d5d06c2b3cfbb3c.tar.gz
gerbonara-69f360be7a71888ed64ca3677d5d06c2b3cfbb3c.tar.bz2
gerbonara-69f360be7a71888ed64ca3677d5d06c2b3cfbb3c.zip
Excellon: WIP
Diffstat (limited to 'gerbonara/gerber/cam.py')
-rw-r--r--gerbonara/gerber/cam.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gerbonara/gerber/cam.py b/gerbonara/gerber/cam.py
index 7988b44..12906a0 100644
--- a/gerbonara/gerber/cam.py
+++ b/gerbonara/gerber/cam.py
@@ -62,6 +62,14 @@ class FileSettings:
def __str__(self):
return f'<File settings: unit={self.unit}/{self.angle_unit} notation={self.notation} zeros={self.zeros} number_format={self.number_format}>'
+ @property
+ def incremental(self):
+ return self.notation == 'incremental'
+
+ @property
+ def absolute(self):
+ return not self.incremental # default to absolute
+
def parse_gerber_value(self, value):
if not value:
return None