Skip to content

Standardize units in pvlib.temperature docstrings (#2519) - #2964

Open
kunaalxoxo wants to merge 1 commit into
pvlib:mainfrom
kunaalxoxo:fix-temperature-units-2519
Open

kunaalxoxo wants to merge 1 commit into
pvlib:mainfrom
kunaalxoxo:fix-temperature-units-2519

Conversation

@kunaalxoxo

@kunaalxoxo kunaalxoxo commented Nov 26, 2026 •

Copy link
Copy Markdown
  • Closes Units in pvlib.temperature not complying with styleguide #2519
  • I am familiar with the contributing guidelines
  • I attest that all AI-generated material has been vetted for accuracy and is in compliance with the pvlib license
  • Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`2519`. Includes contributor GitHub username (link with :ghuser:`kunaalxoxo`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Updates unit formatting in pvlib/temperature.py docstrings to follow the style guide:

  • Standardizes irradiance units to [Wm⁻²] and temperature units to [°C] / °C (including SAPM tables and Returns sections).
  • Replaces [kg/m^2], [degrees], [-], and LaTeX parameter units (u_c, u_v, u0, u1) with unicode-superscript / [unitless] equivalents ([kgm⁻²], [°], [unitless], [Wm⁻²°C⁻¹], [Wm⁻²°C⁻¹(m/s)⁻¹]).
  • Places [unit] tags at the end of the first sentence in parameter and return descriptions.

Copilot AI balanced review requested due to automatic review settings November 26, 2026 06:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

Copy link
Copy Markdown

Hey @kunaalxoxo! 🎉

Thanks for opening your first pull request! We appreciate your
contribution. Please ensure you have reviewed and understood the
contributing guidelines.

If AI is used for any portion of this PR, you must vet the content
for technical accuracy.

Finally, be sure the PR description includes the PR
checklist,
and complete the items you are able to.

@kandersolar kandersolar added this to the v0.16.2 milestone Nov 26, 2026

@kandersolar kandersolar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Places [unit] tags at the end of the first sentence in parameter and return descriptions.

Not sure I agree with this style choice, but overall I think this PR is an improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Units in pvlib.temperature not complying with styleguide

4 participants