diff options
author | jaseg <git@jaseg.de> | 2022-02-04 22:10:19 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-02-04 22:10:19 +0100 |
commit | 4cbda84aa61158c06acc78aac4b318bbea5b6214 (patch) | |
tree | 7b5724b019324bbadd862076ece399a73a670b90 /gerbonara/apertures.py | |
parent | eaf4f21ce65081da0490a41ee1829b4ec8319109 (diff) | |
download | gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.tar.gz gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.tar.bz2 gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.zip |
More doc, fix tests
Diffstat (limited to 'gerbonara/apertures.py')
-rw-r--r-- | gerbonara/apertures.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py index ec14f16..33b78df 100644 --- a/gerbonara/apertures.py +++ b/gerbonara/apertures.py @@ -404,7 +404,7 @@ class PolygonAperture(Aperture): def to_macro(self): return ApertureMacroInstance(GenericMacros.polygon, self._params(MM)) - def params(self, unit=None): + def _params(self, unit=None): rotation = self.rotation % (2*math.pi / self.n_vertices) if self.rotation is not None else None if self.hole_dia is not None: return self.unit.convert_to(unit, self.diameter), self.n_vertices, rotation, self.unit.convert_to(unit, self.hole_dia) @@ -457,7 +457,7 @@ class ApertureMacroInstance(Aperture): hasattr(other, 'params') and self.params == other.params and \ hasattr(other, 'rotation') and self.rotation == other.rotation - def params(self, unit=None): + def _params(self, unit=None): # We ignore "unit" here as we convert the actual macro, not this instantiation. # We do this because here we do not have information about which parameter has which physical units. return tuple(self.parameters) |