- fixed an issue in Gerber parser with detecting old kind of units

This commit is contained in:
Marius Stanciu
2020-01-12 04:05:13 +02:00
committed by Marius
parent a9b93cafa1
commit c9111dac9b
3 changed files with 6 additions and 4 deletions

View File

@@ -595,6 +595,7 @@ class Gerber(Geometry):
match = self.units_re.search(gline)
if match:
obs_gerber_units = {'0': 'IN', '1': 'MM'}[match.group(1)]
self.units = obs_gerber_units
log.warning("Gerber obsolete units found = %s" % obs_gerber_units)
# Changed for issue #80
# self.convert_units({'0': 'IN', '1': 'MM'}[match.group(1)])