-
Notifications
You must be signed in to change notification settings - Fork 42
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
Python extension #32
Python extension #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamheins Thanks for the contribution! Great catch also spotting and removing unnecessary Python dependencies.
python/setup.py
Outdated
version="1.0", | ||
description="Library to find the smallest enclosing ball of points", | ||
author="Martin Kutz", | ||
author_email="kutz@math.fu-berlin.de", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the author to Kaspar Fischer, Bernd Gärtner, and Martin Kutz; as for the email, Martin Kutz is sadly not with us anymore so I suggest to remove it (the URL points to this GitHub project, which should be a good way to get help).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
FYI I switched the project settings to only offer “Squash and merge”. |
Thanks again. Happy to add you also to the README if you’d like that, feel free to make a PR. |
This is a proposal for changing the Python bindings such that they're written as a C++ extension, one benefit of which is that it can be installed in the usual way with
python setup.py install
(and thus can be readily included in other projects without copying code). I've matched the API from the original implementation, and the tests are the same except for the type of exception raised for passing the wrong argument.Let me know if you think this would be a useful change. I'm happy to make any changes to this code, and if we decide to go forward with this PR I can clean up the commit history before merging.