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

curveradius and range path.path methods nonexisting? #34

Closed
gitAlwin opened this issue Nov 1, 2021 · 1 comment
Closed

curveradius and range path.path methods nonexisting? #34

gitAlwin opened this issue Nov 1, 2021 · 1 comment

Comments

@gitAlwin
Copy link

gitAlwin commented Nov 1, 2021

I hope this is the right place for the question / issue I have, I apologize if it isn't (In that case, what would be the correct place?).

I am currently learning PyX and going through the documentation. I can't however get the methods path.path.curveradius and path.path.range to work. E.g. when I create an arc called pth

pth = path.path(path.arc(0, 0, 1, 0, 120))

and ask for its range

pth.range()

an error is returned

AttributeError: 'path' object has no attribute 'range'

Similarly for asking the curveradius at the beginning of the path

pth.curveradius(0)

results in

'path' object has no attribute 'curveradius'

I've looked into the source code of the path module path.py and couldn't find the methods though could find other methods listed in the documentation.

Also, I noticed that in the release announcement op PyX 0.13 that curveradius has been removed from the normpath module. Could it be that the method has been removed in the past but that this change was not updated in the documentation?

Thank you in advance for an answer.

Alwin

@joerg-lehmann
Copy link
Member

Thanks, Alwin, for reporting this. As you guessed correctly, this was a bug in the documentation.

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

2 participants