summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/cam.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-19 13:40:04 +0100
committerjaseg <git@jaseg.de>2022-01-19 13:40:04 +0100
commit6c924609416b82e6be68680874d86447cffa9fd9 (patch)
tree9b5803acfb5850a56f1c3f485569867b8df7c019 /gerbonara/gerber/cam.py
parent40286fc92fc05ce82cbad4615f497ba389ac9457 (diff)
downloadgerbonara-6c924609416b82e6be68680874d86447cffa9fd9.tar.gz
gerbonara-6c924609416b82e6be68680874d86447cffa9fd9.tar.bz2
gerbonara-6c924609416b82e6be68680874d86447cffa9fd9.zip
Matcher WIP
Diffstat (limited to 'gerbonara/gerber/cam.py')
-rw-r--r--gerbonara/gerber/cam.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gerbonara/gerber/cam.py b/gerbonara/gerber/cam.py
index 36e08ac..57ac000 100644
--- a/gerbonara/gerber/cam.py
+++ b/gerbonara/gerber/cam.py
@@ -83,7 +83,11 @@ class FileSettings:
# Format precision
integer_digits, decimal_digits = self.number_format
if integer_digits is None or decimal_digits is None:
- raise SyntaxError('No number format set and value does not contain a decimal point')
+ raise SyntaxError('No number format set and value does not contain a decimal point. If this is an Allegro '
+ 'Excellon drill file make sure either nc_param.txt or ncdrill.log ends up in the same folder as '
+ 'it, because Allegro does not include this critical information in their Excellon output. If you '
+ 'call this through ExcellonFile.from_string, you must manually supply from_string with a '
+ 'FileSettings object from excellon.parse_allegro_ncparam.')
# Remove extraneous information
sign = '-' if value[0] == '-' else ''