-
Notifications
You must be signed in to change notification settings - Fork 17
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
Added docstrings to AIPlugIn #98
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #98 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 938 937 -1
Branches 129 129
=========================================
- Hits 938 937 -1 ☔ View full report in Codecov by Sentry. |
Superclass for data driven components: VAE, PPO, etc. Allows for easier modularity. | ||
"""This serves as a base for all plugins. | ||
|
||
This is the superclass for data driven components: VAE, PPO, etc. It is |
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.
We should probably update the examples to ones we have... which is none (the Kalman plugin doesn't count, right?)... so I don't know.
We could at least get rid of the acronyms.
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.
I'd be in favor of just removing that sentence for now.
I don't have a strong preference for the comment style we use. If I had to pick, I would go with whatever the python libraries use. |
We have decided to follow numpydoc style: |
Hello, I've been browsing the other PR's and issues in the repository. I just wanted to note that since you all have decided on a docstring style to move forward with, most IDEs now have support for automatically generating docstring formats/templates for you to fill in. Essentially, all you will have to do is type In VSCode, you can use the autoDocstring extension, which has support for numpydoc. PyCharm already has automatic docstring templates builtin, and already supports numpydoc. |
Here is an update for ai_plugin.py using Google style docstrings. Also using type annotations.
Is this the style we'd like to go forward with?
There are other style choices we could choose. i.e., NumPy, reST, or Epytext (others?)
Opinions?