-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add some more docstrings. #536
Conversation
@@ -25,10 +25,12 @@ | |||
|
|||
|
|||
class InvalidGridShapeError(Exception): |
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.
Side question: should these Error classes should be in error.py?
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.
That would make sense to me. I didn't try and move them in this PR though.
I'm fine with removing the unused Error classes... I seem to remember that Kurt was in favor of this too. @kwmsmith ? |
I have removed the unused exception classes. The tests still pass locally. |
Looks good to me, and builds without errors. |
This PR adds some more docstrings to distarray, to get better coverage as per issue #525.
It also makes some pep8 adjustments, where I felt like following its rules. A lot of the added docstrings are for exception classes, and as I was investigating these, several seemed to be unused. In those cases, instead of adding a docstring (since there was no usage to suggest the correct text), I added a comment that the exception class seemed to be unused. If they really are unused, then perhaps they should just be removed from the code base. But I did not do that here so far.