Skip to content

Commit

Permalink
Merge pull request #112 from chris-greening/fix-scale-origin
Browse files Browse the repository at this point in the history
Fix scale origin value
  • Loading branch information
chris-greening authored Apr 2, 2023
2 parents 6d39f1e + d2788ed commit 9e4e2d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="spyrograph",
version="0.20.0",
version="0.20.1",
author="Chris Greening",
author_email="chris@christophergreening.com",
description="Library for drawing spirographs in Python",
Expand Down
6 changes: 4 additions & 2 deletions spyrograph/_trochoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ def scale(self, factor: Number) -> Union["_Trochoid", "_Cycloid"]:
R=self.R*factor,
r=self.r*factor,
d=self.d*factor,
thetas=self.thetas
thetas=self.thetas,
origin=self.origin
)
except TypeError:
scaled_shape = self.__class__(
R=self.R*factor,
r=self.r*factor,
thetas=self.thetas
thetas=self.thetas,
origin=self.origin
)
return scaled_shape

Expand Down

0 comments on commit 9e4e2d5

Please sign in to comment.