Skip to content

DOC: Move equations to Notes in stability index docstrings#4099

Open
manduinca wants to merge 1 commit into
Unidata:mainfrom
manduinca:doc/move-equations-thermo-stability
Open

DOC: Move equations to Notes in stability index docstrings#4099
manduinca wants to merge 1 commit into
Unidata:mainfrom
manduinca:doc/move-equations-thermo-stability

Conversation

@manduinca

Copy link
Copy Markdown

Description Of Changes

Follow-up to #4095, applying the same #2677 pattern to metpy.calc.thermo. Moves the equation blocks, term definitions and implementation notes out of the function description (above Parameters) and into the Notes section, so they render below Parameters/Returns.

Scoped to the stability / severe-weather indices for a focused pass: lifted_index, k_index, galvez_davison_index, showalter_index, total_totals_index, vertical_totals, cross_totals and sweat_index. None of these had a Notes section, so I added one to each. For galvez_davison_index the convective-regime .. list-table:: moved along with the equation; sweat_index had no Examples, so its Notes goes at the end of the docstring.

Docstrings only — no code, signatures or behaviour changed, and the doctests are untouched. Happy to continue with the remaining thermo functions and indices in separate PRs.

Checklist

Part of Unidata#2677. Follows the pattern of Unidata#4095 (kinematics): move the
equation blocks, term definitions, and implementation notes that
appeared before the Parameters section into the Notes section, so they
render below the parameter and return documentation.

Affects the stability/severe-weather indices in calc/thermo.py:
lifted_index, k_index, galvez_davison_index, showalter_index,
total_totals_index, vertical_totals, cross_totals, and sweat_index.
@manduinca
manduinca requested a review from a team as a code owner July 21, 2026 00:45
@manduinca
manduinca requested review from dopplershift and removed request for a team July 21, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant