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/rs274x.py | |
parent | eaf4f21ce65081da0490a41ee1829b4ec8319109 (diff) | |
download | gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.tar.gz gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.tar.bz2 gerbonara-4cbda84aa61158c06acc78aac4b318bbea5b6214.zip |
More doc, fix tests
Diffstat (limited to 'gerbonara/rs274x.py')
-rw-r--r-- | gerbonara/rs274x.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py index 3dd8bb7..b355bda 100644 --- a/gerbonara/rs274x.py +++ b/gerbonara/rs274x.py @@ -255,20 +255,13 @@ class GerberFile(CamFile): settings.number_format = (5,6) return '\n'.join(self._generate_statements(settings, drop_comments=drop_comments)) - @property - def is_empty(self): - return not self.objects - def __len__(self): return len(self.objects) - def __bool__(self): - return not self.is_empty - def offset(self, dx=0, dy=0, unit=MM): # TODO round offset to file resolution for obj in self.objects: - obj.with_offset(dx, dy, unit) + obj.offset(dx, dy, unit) def rotate(self, angle:'radian', center=(0,0), unit=MM): if math.isclose(angle % (2*math.pi), 0): |