summaryrefslogtreecommitdiff
path: root/gerbonara/cam.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-11-09 20:08:26 +0100
committerjaseg <git@jaseg.de>2023-11-14 21:52:12 +0100
commit11325b213b6ef7cebcdcf0c79f966cda3ce61a89 (patch)
tree90922e50e32b30fb1d7431de9e48d8b5aa5e51ad /gerbonara/cam.py
parent74fb384c4c0899f4d6f153da8db748a7a49e78ee (diff)
downloadgerbonara-11325b213b6ef7cebcdcf0c79f966cda3ce61a89.tar.gz
gerbonara-11325b213b6ef7cebcdcf0c79f966cda3ce61a89.tar.bz2
gerbonara-11325b213b6ef7cebcdcf0c79f966cda3ce61a89.zip
Calculate out all aperture macros by default.
There are just too many severely buggy implementations around. Today I ran into problems with both gerbv and with whatever JLC uses. You can still export macros with raw expressions by setting a flag in the export FileSettings.
Diffstat (limited to 'gerbonara/cam.py')
-rw-r--r--gerbonara/cam.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gerbonara/cam.py b/gerbonara/cam.py
index 8389425..e6bb651 100644
--- a/gerbonara/cam.py
+++ b/gerbonara/cam.py
@@ -56,11 +56,10 @@ class FileSettings:
number_format : tuple = (None, None)
#: At least the aperture macro implementations of gerbv and whatever JLCPCB uses are severely broken and simply
#: ignore parentheses in numeric expressions without throwing an error or a warning, leading to broken rendering.
- #: To avoid trouble with severely broken software like this, we split out any non-trivial numeric sub-expressions
- #: into separate internal macro variables by default.
+ #: To avoid trouble with severely broken software like this, we just calculate out all macros by default.
#: If you want to export the macros with their original formulaic expressions (which is completely fine by the
- #: Gerber standard, btw), set this parameter to ``True`` before exporting.
- allow_mixed_operators_in_aperture_macros: bool = False
+ #: Gerber standard, btw), set this parameter to ``False`` before exporting.
+ calculate_out_all_aperture_macros: bool = True
# input validation
def __setattr__(self, name, value):