Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is PenDecorator defined? #2

Open
dgtlrift opened this issue Jan 31, 2017 · 1 comment
Open

Where is PenDecorator defined? #2

dgtlrift opened this issue Jan 31, 2017 · 1 comment

Comments

@dgtlrift
Copy link

In some of the test code there are references to PenDecorator, but I cannot find where it is defined.

from chiplotle.hpgl.decorators.pen import PenDecorator

Where is this implemented?

@dgtlrift
Copy link
Author

dgtlrift commented Jan 31, 2017

It seems that refactoring changes for 52323c7 and ffb8dbe resulted in changing PenDecorator to Pen but there doesn't seem to be reciprocal changes for ./chiplotle/geometry/core/label.py
./chiplotle/geometry/transforms/arrange_shapes_on_path.py
./chiplotle/tools/geometrytools/get_shape_intersections.py
I did try to change those references, but ran into an issue with

jim@jim-VirtualBox:~/project/chiplotle/repo/chiplotle$ python chiplotle/tools/geometrytools/get_shape_intersections.py
Traceback (most recent call last):
  File "chiplotle/tools/geometrytools/get_shape_intersections.py", line 29, in <module>
    s1 = bezier_path([randint(0, 200) for  i in range(12)], 1, 14)
  File "/home/jim/.local/lib/python2.7/site-packages/chiplotle/geometry/shapes/bezier_path.py", line 25, in bezier_path
    points = CoordinateArray(points)
  File "/home/jim/.local/lib/python2.7/site-packages/chiplotle/geometry/core/coordinatearray.py", line 14, in __init__
    self._data = [Coordinate(*list(p)) for p in coords]
TypeError: 'int' object is not iterable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant