diff options
author | jaseg <git@jaseg.de> | 2022-01-18 01:10:16 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-18 01:10:16 +0100 |
commit | d85790bc6d40deb1d52cc5d8a4c178f664635625 (patch) | |
tree | 8be76c210974a2dbd1f11c5eecfee015c46f9d83 /gerbonara/gerber/cam.py | |
parent | 73a44901c0ef0e94e9465c2f35750ca6f85a4473 (diff) | |
download | gerbonara-d85790bc6d40deb1d52cc5d8a4c178f664635625.tar.gz gerbonara-d85790bc6d40deb1d52cc5d8a4c178f664635625.tar.bz2 gerbonara-d85790bc6d40deb1d52cc5d8a4c178f664635625.zip |
Unit code refactor WIP
Diffstat (limited to 'gerbonara/gerber/cam.py')
-rw-r--r-- | gerbonara/gerber/cam.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/gerber/cam.py b/gerbonara/gerber/cam.py index 42a5848..6fe5f9b 100644 --- a/gerbonara/gerber/cam.py +++ b/gerbonara/gerber/cam.py @@ -98,7 +98,7 @@ class FileSettings: """ Convert a floating point number to a Gerber/Excellon-formatted string. """ if unit is not None: - value = self.unit.from(unit, value) + value = self.unit(value, unit) integer_digits, decimal_digits = self.number_format if integer_digits is None: |