Skip to content

Clarify linke turbidity in docs for clearsky.ineichen#2746

Merged
cwhanse merged 9 commits intopvlib:mainfrom
cwhanse:linke_docs
May 4, 2026
Merged

Clarify linke turbidity in docs for clearsky.ineichen#2746
cwhanse merged 9 commits intopvlib:mainfrom
cwhanse:linke_docs

Conversation

@cwhanse
Copy link
Copy Markdown
Member

@cwhanse cwhanse commented May 2, 2026

  • Closes Confusing docs for pvlib.clearsky.ineichen and lookup_linke_turbidity #2598
  • 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
  • Tests added
  • Updates entries in docs/sphinx/source/reference for API changes.
  • 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:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
  • 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.

@cwhanse cwhanse added this to the v0.15.2 milestone May 2, 2026
Comment thread pvlib/clearsky.py Outdated
Comment thread pvlib/clearsky.py Outdated
cwhanse and others added 2 commits May 3, 2026 06:25
Co-authored-by: Anton Driesse <anton.driesse@pvperformancelabs.com>
Co-authored-by: Anton Driesse <anton.driesse@pvperformancelabs.com>
Comment thread pvlib/clearsky.py Outdated
Comment thread pvlib/clearsky.py Outdated

Examples
--------
https://pvlib-python.readthedocs.io/en/stable/user_guide/modeling_topics/clearsky.html#examples
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.

Could we use an internal reference here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How do I do that?

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.

In modeling_topics.rst, add something like

.. _clearsky-examples:

at line 258 before the subsection Examples title.

Then, in this section, cross-reference with

See :ref:`clearsky-examples`
or
See :ref:`Clearsky Modeling Topic examples <clearsky-examples>`

(text between <> is the reference, prior to it is text to show; if omitted, I think it would plainly output "clearsky-examples"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For me, the link doesn't appear where intended. Browser issue maybe?

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.

Do you mean that the title appears hidden by top navbar and you have to scroll a little up?

Latest commit anchors the reference to the paragraph instead of to the header. I'm pretty sure you must have nailed it at commit ea45ac0; I seem unable to understand why that wouldn't work for you.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Its more than a whole page off. If the PR view isn't where the view will appear after the PR is merged, then I'd say move ahead, merge, and then fix if needed.

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.

Hmm I wasn't able to reproduce that yesterday. I'm okay with a follow-up. LGTM.

Copy link
Copy Markdown
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

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

The internal link works as expected in the PR build, on my browser.

@cwhanse cwhanse merged commit 603ede0 into pvlib:main May 4, 2026
31 checks passed
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.

Confusing docs for pvlib.clearsky.ineichen and lookup_linke_turbidity

4 participants