-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Revise dc_ohmic_loss and dc_ohms_from_percent docstrings #2229
Conversation
Thanks @RDaxini Co-authored-by: RDaxini <143435106+RDaxini@users.noreply.github.com>
That was a misclick. I thought I was confirming the email associated with the last commit. @pvlib/pvlib-maintainer can do a follow-on if further edits are desired. |
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.
A couple edits (I guess GitHub does not allow making direct suggestions after the PR isclosed).
|
||
.. math:: | ||
|
||
L = I \times R^2 |
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.
This should be L = I^2 R
@@ -14,6 +14,8 @@ Enhancements | |||
|
|||
Documentation | |||
~~~~~~~~~~~~~ | |||
* Edited docstrings for :py:func:`~pvlib.pvsystem.dc_ohms_from_percent` and | |||
:py:func:`~pvlib.pvsystem.dc_ohmic_loss` for clarity. (:issue:`1601`, :pull:`2229`) |
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.
should be dc_ohmic_losses
, not dc_ohmic_loss
[ ] Tests added[ ] Updates entries indocs/sphinx/source/reference
for API changes.docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).remote-data
) and Milestone are assigned to the Pull Request and linked Issue.#1601 points out that the calculations are elementary and referencing the PVsyst help file isn't appropriate. Being elementary, and completely explained in the docstring, obviates the need for a reference IMO.
The docstring for
dc_ohms_from_percent
was further edited to fix a few typos, adjust to recent style (explanatory Notes section), and clarify module vs. array parameters.