Skip to content

docs: a working quickstart, correct setup docs, one docs host - #528

Merged
blalterman merged 21 commits into
masterfrom
docs/quickstart-and-fixes
Nov 5, 2026
Merged

blalterman merged 21 commits into
masterfrom
docs/quickstart-and-fixes

Conversation

@blalterman

Copy link
Copy Markdown
Owner

What changed

  • Quickstart rewrite (docs/source/tutorial/quickstart.rst): runs end to end on swp.examples.load_plasma(), covering the M/C/S frame, n, |v|, w, T in kelvin, beta, R, an "a+p1" total, a Hist2D (agg, path and make_plot, noted as a three-row demonstration), and a Line fit's popt and results. Every example is a doctest. The tutorial.rst stub is folded in, so the quickstart sits after Installation in the User Guide toctree.
  • Setup docs: development installs use pip install -e ".[dev]" (README, installation.rst, CONTRIBUTING). README now says what pre-commit actually runs, and its docs build uses -W --keep-going -n. CONTRIBUTING drops --targeted and the drifted counts. RELEASING uses Python 3.12.
  • Hooks: default_install_hook_types: [pre-commit, commit-msg], so plain pre-commit install also installs the commit-message check.
  • missing_data.rst: n, rho, pth, T and Wk take an "a+p1" total, as do beta, R, cs and ca built from them. Only w raises. Also documents n(..., skipna=False).
  • One docs host: the GitHub Pages deploy job is removed (its build check stays), pyproject lists Read the Docs as Documentation, and README links it.
  • Removed documentation_review.rst (a quarterly review that never ran). conf.py now has needs_sphinx = "7.0" and no longer says "enabled for RTD" about the PDF/EPUB settings.

Why

Two docs audits found the user pages accurate but thin and the setup and process docs wrong in places, and the docs were published twice.

Verification

  • cd docs && make clean && SPHINXOPTS="-W --keep-going -n" make html: build succeeded
  • pytest --doctest-glob='*.rst' docs/source: 42 passed
  • Sybil, pytest -p no:doctest README.rst docs/source/tutorial/quickstart.rst docs/source/installation.rst: 49 passed
  • Full suite: 6650 passed, 16 skipped
  • In a scratch clone, plain pre-commit install installed both .git/hooks/pre-commit and .git/hooks/commit-msg

Note: the first commit (pre-commit default hook types, 6a05643) reached master directly. An accidental push did it: this branch first tracked origin/master under push.default=upstream. It is already on master, so this PR's diff begins with the second commit.

🤖 Generated with Claude Code

blalterman and others added 6 commits November 5, 2026 02:06
- Development installs use `pip install -e ".[dev]"` in README.rst,
  installation.rst and CONTRIBUTING.md, including after the conda
  environment: solarwindpy.yml's own header says the same, and the plain
  editable install lacks the test and docs tools the next steps run.
- README states what the pre-commit hooks run, per their `files` filters,
  instead of only ruff.
- README's docs build uses the flags CI uses: -W --keep-going -n.
- CONTRIBUTING drops the nonexistent `--targeted` flag and the hand-kept
  example and line counts that had drifted.
- RELEASING's conda check uses Python 3.12, and its expected PyPI metadata
  matches requires-python >=3.12 and the classifiers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Only temperatures and pressures form totals" was false. n, rho, pth, T
and Wk sum over the species present, and beta, R, cs and ca are built
from those totals; each accepts "a+p1". Checked against the code: with
the alphas masked at one time, every "a+p1" value there equals the p1
value, and with no species present it is NaN. Also documents the strict
total `n(..., skipna=False)`, which Plasma.n's comment already points to
this page for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page promised a quarterly review that never ran. CI already lints the
docs with doc8 and builds them with warnings as errors on every push,
which is the check the page described. The "Development" toctree held
only this page, so it goes too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
needs_sphinx said 1.8 while pyproject's docs and dev extras require
sphinx>=7.0, so the configured floor guarded nothing. The PDF and EPUB
settings were marked "enabled for RTD", but .readthedocs.yaml lists no
formats, so Read the Docs builds HTML only; the markers go, the settings
stay for local latex and epub builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The quickstart was a version check. It now runs end to end on
swp.examples.load_plasma(): the M/C/S column frame, density, speed,
thermal speed, temperature in kelvin via plasma.units, beta, R, an "a+p1"
total, a Hist2D (agg, path and make_plot, with the caveat that three rows
are only a demonstration) and a Line fit's popt and results. Values are
rounded or hand-checkable (700 km/s, R = 7^2/10^2). Every example is a
doctest, which the Sybil rst-examples job and --doctest-glob already run.

tutorial.rst was a stub whose only content was a toctree pointing at the
quickstart, so the quickstart takes its place in the User Guide toctree,
after installation. usage.rst and the sidebar template no longer link the
stub. README links the documentation on Read the Docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs were published twice: by Read the Docs, which the README badge
and the new quickstart link point to, and by the docs workflow's deploy
job to GitHub Pages with a cname of solarwindpy.github.io, a domain this
repository does not serve. The deploy job goes; the build job keeps
checking every push with -W --keep-going -n. pyproject.toml lists Read
the Docs as the Documentation URL, and docs/README.md says where the
docs are hosted. The gh-pages branch is left for the branch cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 20s —— View job


Review of PR #528

I read the full diff against origin/master. I didn't run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests.

Verdict: looks good. I found no blocking issues.

Checks I made:

  • Dangling references: a grep finds no leftovers for documentation_review, pathto('tutorial'), :doc:tutorial``, github.io or `gh-pages`. Removing `tutorial.rst` and `documentation_review.rst` is clean. The sidebar link and the `usage.rst` "Next Steps" link were both updated.
  • Python versions: the RELEASING.md edits match requires-python = ">=3.12,<4" and the classifiers in pyproject.toml.
  • Sphinx floor: needs_sphinx = "7.0" matches sphinx>=7.0 in the docs extras.
  • Read the Docs: .readthedocs.yaml exists, so the "one docs host" claim holds. Removing the deploy job leaves the build job's -W check in place.
  • Quickstart: the numbers are checkable by hand (|v| = 700 at the second row, R = 0.49 at the first, 0.5 + 1.0 = 1.5 for the "a+p1" total). The Hist2D and Line examples use Agg and close their figure.

Minor, non-blocking suggestions:

  1. Hidden matplotlib.use("Agg"). In quickstart.rst, matplotlib.use("Agg") is called after solarwindpy and its plotting modules are imported. This works, because the backend is only resolved at first figure creation. A reader may copy it as a recipe, though. A one-line note that it is only for headless doc builds would help.
  2. Pinned-number doctests. [4000.0, 35400.0, 49800.0] and the beta values are pinned outputs with no source cited. The prose derives |v| and R, but not T or beta. Under the repo's "fragile" rule, one sentence giving the relation would help, for example T = m w² / (2 k_B) with the proton mass. Alternatively, test it as a relation.
  3. README commit-hook paragraph. It lists exactly what pre-commit runs, so it will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would be more durable.
  4. docs/README.md. It says the docs workflow runs "on every push and pull request". Please confirm that matches the on: triggers in docs.yml.
  5. CHANGELOG and the master push. The CHANGELOG entry covers the hook-type default, but the PR note says that commit is already on master. Consider whether the CHANGELOG should list it under the same release section as the rest.

Security: nothing of concern. Removing the GitHub Pages deploy job also removes a GITHUB_TOKEN-using third-party action.

The quickstart said any species string joined with "+" asks for a total,
but w raises for one and v returns the center-of-mass velocity; it now
says quantities that add over species take one, and points to
missing_data for which. README's import test runs on staged Python files
under src/solarwindpy, not on any file there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 13s —— View job


Review of PR #528

I read the diff against origin/master and spot-checked a few claims. I didn't run the suite or the docs build. I'm relying on your reported results.

Verdict: looks good. I found no blocking issues.

Checked

  • Dangling references: removing tutorial.rst and documentation_review.rst leaves no stale links. The sidebar and usage.rst links were updated.
  • Workflow triggers (my earlier item 4): docs.yml runs on push to all branches and on pull_request. The wording in docs/README.md and CHANGELOG ("every push and pull request") is accurate.
  • Python and Sphinx floors: the RELEASING.md and conf.py edits match pyproject.toml.
  • Read the Docs: .readthedocs.yaml exists, so "one docs host" holds. The build job keeps the -W check.
  • CHANGELOG (my earlier item 5): the hook-type entry already sits under [Unreleased] with the rest. Nothing to change.

Non-blocking suggestions

  1. matplotlib.use("Agg") in the quickstart (quickstart.rst:126). The prose says Agg renders without a display, which is the right hint. Consider adding that readers with a display can skip the line, so it isn't copied as a recipe.
  2. Pinned numbers. The T values ([4000.0, 35400.0, 49800.0]) and the beta values have no stated relation. One sentence giving T = m w² / (2 k_B) would turn them into derivations. That matches the repo's rule on fragile pinned numbers.
  3. README hook list. It enumerates what pre-commit runs, so it will drift. Pointing to .pre-commit-config.yaml for the full list would hold up better.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

The review plan page is gone; CONTRIBUTING's "Documentation reviews"
section and the Documentation Review issue template described the same
quarterly review, which never ran. CI lints and builds the docs with
warnings as errors on every push instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 14s —— View job


Review of PR #528

I read the diff against origin/master, including the full quickstart. I didn't run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests.

Verdict: looks good. I found no blocking issues.

Checked

  • Removed pages: I found no stale links to tutorial.rst or documentation_review.rst. The sidebar and usage.rst links were updated.
  • Quickstart arithmetic: √(200²+300²+600²) = 700 and (7/10)² = 0.49 both hold. The quickstart derives |v| and R, but not T or beta.
  • Docs host: removing the Pages deploy job keeps the build job's -W check. The earlier reviews confirmed .readthedocs.yaml exists and the docs.yml triggers match the wording in docs/README.md.

Non-blocking suggestions (these repeat the earlier reviews, and none is a blocker)

  1. matplotlib.use("Agg") (quickstart.rst, Hist2D section). Say that readers with a display can skip it, so it isn't copied as a recipe.
  2. Pinned T and beta values. [4000.0, 35400.0, 49800.0] and [0.34, 4.18, 4.93] have no stated source. The page states m w² = 2 k_B T, so adding the relation for these values would turn them into derivations. You could also write them as a relation test, per the "fragile" rule in CLAUDE.md.
  3. README pre-commit hook list. It will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would hold up better.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

From a fresh-reader review of the quickstart:

- The fit uses noisy data from a seeded RNG and reads the slope's
  uncertainty from psigma and from results[("m", "uncertainty")]; it says
  the uncertainty is the square root of pcov's diagonal, scaled by the
  reduced chi-squared as curve_fit does by default.
- The histogram is saved: h.path is relative, joined to a figure
  directory with an extension added, as its docstring says.
- The scalar thermal speed is defined, sqrt((w_par^2 + 2 w_per^2) / 3),
  and stated to be computed by Plasma rather than input; usage.rst says
  the same. The field magnitude is shown in nT.
- e and p2 are named; Agg is selected before solarwindpy is imported.
- Next Steps links Plasma, Hist2D and FitFunction.results and names
  pth, ca, cs, afsq and estimate_electrons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 12s —— View job


Review of PR #528

I checked the diff stat (17 files, +275/-134) and the commit list against origin/master. I didn't re-run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests passed.

Verdict: looks good. I found no blocking issues. Earlier reviews found no dangling references, and the Python, Sphinx and Read the Docs claims match the repo. The docs.yml triggers also match the wording in docs/README.md.

Non-blocking suggestions (all three repeat the earlier reviews)

  1. matplotlib.use("Agg") in the quickstart. Add a note that readers with a display can skip it, so it isn't copied as a recipe.
  2. Pinned T and beta values. [4000.0, 35400.0, 49800.0] and the beta values have no stated relation. Give T = m w² / (2 k_B), or test them as a relation. This follows the "fragile" rule in CLAUDE.md.
  3. README pre-commit hook list. It will drift when .pre-commit-config.yaml changes. Point to the config file for the full list.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

From the hands-on quickstart test:

- The quickstart said psigma is rescaled by the reduced chi-squared "as
  curve_fit does by default", implying the rescaling can be switched off.
  It cannot: make_fit(absolute_sigma=True) raises NotImplementedError.
  The page now says pcov is always rescaled by the robust reduced
  chi-squared, that weights are the 1-sigma uncertainties of y, and what
  chisq_dof's linear and robust kinds are (the robust one follows the
  Huber loss make_fit uses by default).
- installation.rst states the supported Python range, 3.12 and newer,
  instead of only pointing at pyproject.toml.
- Next Steps says usage.rst shows the input DataFrame layout for bringing
  your own data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 10s —— View job


Review of PR #528

I read the commit list and diff stat against origin/master: 10 commits, 17 files, +289/-134. I didn't run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests passed.

Verdict: looks good. I found no blocking issues. This is the fourth pass over this PR. Earlier passes found no dangling references to the removed pages, and the Python, Sphinx and Read the Docs claims match the repo. The docs.yml triggers match the wording in docs/README.md.

Non-blocking suggestions (none is new)

  1. matplotlib.use("Agg") in the quickstart. Add a note that readers with a display can skip it, so it isn't copied as a recipe.
  2. Pinned T and beta values. [4000.0, 35400.0, 49800.0] and the beta values have no stated relation. State T = m w² / (2 k_B), or test them as a relation. This follows the "fragile" rule in CLAUDE.md.
  3. README pre-commit hook list. It will drift when .pre-commit-config.yaml changes. Point to the config file for the full list.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

blalterman and others added 3 commits November 5, 2026 02:57
Rename "The two levels" to "Worked example" and replace the pressure
table, which repeated the temperature one, with a sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show the Line fit's results on its side, explain each row, and add a
seeded Gaussian fit whose table shows the same layout with three
parameters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 18s —— View job


Review of PR #528

I read the diff stat against origin/master (17 files, +349/-152) and re-checked the quickstart and README. I didn't run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests passed.

Verdict: looks good. I found no blocking issues. This is the fifth pass. Earlier passes found no dangling references to the removed pages, and the Python, Sphinx, Read the Docs and docs.yml claims match the repo.

Already addressed in the current head

  • matplotlib.use("Agg"): quickstart.rst:27 now explains why the backend is set before the plot.
  • T relation: quickstart.rst:94 states m w² = 2 k_B T, which covers the [4000.0, 35400.0, 49800.0] values.

Non-blocking, optional

  1. README pre-commit list (README.rst:117). It lists what the hook runs and will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would hold up better.
  2. Beta values. The T relation is now stated, but I couldn't confirm the beta values get the same treatment. If they don't, one sentence on β = n k_B T / (B²/2μ₀) would cover them.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

blalterman and others added 2 commits November 5, 2026 03:10
Document the four plot classes, their bins, axnorm normalizations,
contour smoothing, distribution edges and TeXlabel labels, and add the
fit-with-residuals figure. Figures come from the matplotlib plot
directive with the code shown and no hidden setup (plot_pre_code is
empty), so each block runs alone; tests/test_docs_plot_blocks.py runs
every block in its own namespace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add sphinx-copybutton, configured to strip the ">>> " and "... "
prompts, to conf.py, the docs and dev extras and solarwindpy.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 13s —— View job


Review of PR #528

I read the commit list and diff stat against origin/master (14 commits, 18 files, +796/-157) and the new tests/test_docs_plot_blocks.py. I didn't run the suite or the docs build. I'm relying on your reported results.

Verdict: looks good. I found no blocking issues. This is the sixth pass. Earlier passes found no dangling references to the removed pages, and the Python, Sphinx, Read the Docs and docs.yml claims match the repo.

New since the last pass: tests/test_docs_plot_blocks.py

  • The design is sound. It runs each .. plot:: block in a fresh namespace under Agg and closes figures in a finally. The assert BLOCKS test stops an empty parametrization from passing. It skips when docs/source is absent, e.g. when testing from the sdist.
  • Minor: _plot_blocks does min(...) over the body lines. If a .. plot:: directive is empty or has only options, min raises a bare ValueError at collection time and breaks the whole module. A guard with a clear message would make that failure easier to read.
  • Minor: the directive regex only matches .. plot:: with no argument. A .. plot:: path/to/script.py form is silently skipped. That is fine today, since the module says "inline" blocks, but it won't catch a script-file block added later.
  • The file header uses the repo's Spent-When/Supersedes convention. I didn't check the exact format against .claude/docs/TEST_PATTERNS.md, so please confirm it.

Already addressed

  • The matplotlib.use("Agg") hint and the m w² = 2 k_B T relation are in the quickstart.

Non-blocking, optional (repeated)

  1. README pre-commit list. It enumerates what the hook runs and will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would hold up better.
  2. Beta values (quickstart.rst:101-106). The prose says beta and R are dimensionless. It doesn't state β = n k_B T / (B²/2μ₀), so the beta values remain pinned numbers. One sentence with the relation would cover them under the "fragile" rule.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 20s —— View job


Review of PR #528

I read the commit list (15 commits) and the diff stat against origin/master (19 files, +807/-157). I re-read tests/test_docs_plot_blocks.py in full. I didn't run the suite or the docs build. I'm relying on your reported results.

Verdict: looks good. I found no blocking issues. This is the seventh pass. Earlier passes found no dangling references to the removed pages. The Python, Sphinx, Read the Docs and docs.yml claims match the repo.

tests/test_docs_plot_blocks.py (the only code in the PR)

  • The design is sound. Each block runs in a fresh namespace under Agg, figures are closed in a finally, and test_the_guide_has_plot_blocks stops an empty parametrization from passing. The module skips when docs/source is absent.
  • Minor: min(...) over the body lines at _plot_blocks raises a bare ValueError at collection time if a .. plot:: directive has no body. That would break the whole module. A guard with a message naming the file and line would be easier to read.
  • Minor: the regex matches only .. plot:: with no argument. A .. plot:: script.py block is skipped without notice. That is fine today, since the module says "inline" blocks.
  • Please confirm the Spent-When/Supersedes header against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.
  • matplotlib.use("Agg") runs at import and sets the backend for the whole pytest session. The other tests probably already do this, but I didn't verify.

Already addressed

  • The matplotlib.use("Agg") hint and the m w² = 2 k_B T relation are in the quickstart.

Non-blocking, optional (repeated from earlier passes)

  1. README pre-commit list. It enumerates what the hook runs and will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would hold up better.
  2. Beta values in the quickstart. I haven't seen β = n k_B T / (B²/2μ₀) stated, so the beta values remain pinned numbers under the "fragile" rule in CLAUDE.md. One sentence with the relation would cover them.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

blalterman and others added 2 commits November 5, 2026 03:26
Doctests and Sybil examples now run under pandas' non-terminal display
defaults, set in one place in conftest.py, so a printed Series or
DataFrame does not follow the width of the terminal running pytest. rst
examples compare output with whitespace normalized under both runners;
docstring examples keep exact whitespace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A quantity prints as the Series or DataFrame it is, with its epoch
index, name and component columns, rather than as a bare list. The
unique-measurement Index keeps .tolist(): its repr prints the dtype,
which pandas has changed between versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 46s —— View job


Review of PR #528

I read the commit list (17 commits) and the diff stat against origin/master (20 files, +912/-165). I re-read tests/test_docs_plot_blocks.py and the conftest.py changes. I didn't run the suite or the docs build. I'm relying on your reported results.

Verdict: looks good. I found no blocking issues. This is the eighth pass.

conftest.py (new since the last pass)

  • The pandas display options are applied per Sybil document through setup/teardown, and per doctest through an autouse fixture. The enter/exit stack is balanced, so the options are restored after each item.
  • item.runner.optionflags |= NORMALIZE_WHITESPACE in pytest_collection_modifyitems is applied to .rst doctest items only, and the docstring says docstring examples keep exact whitespace. The comment says one runner serves a file's examples. That relies on pytest's doctest internals, so it could break on a pytest upgrade. The tests would fail rather than pass silently, though, so I see no risk.
  • The .rst whitespace normalization can hide a spacing regression in a printed table. That is a deliberate trade-off, and it is documented.

tests/test_docs_plot_blocks.py

  • The design is sound. Each block runs in a fresh namespace under Agg, figures are closed in a finally, and the assert BLOCKS test stops an empty parametrization from passing.
  • Minor: min(...) in _plot_blocks raises a bare ValueError at collection time if a .. plot:: directive has no body. That would break the whole module. A guard that names the file and line would be easier to read.
  • Minor: the regex matches only .. plot:: with no argument. A .. plot:: script.py block is skipped without notice. That is fine today, since the module says "inline" blocks.
  • Please confirm the Spent-When/Supersedes header against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.

Non-blocking, optional (repeated)

  1. README pre-commit list. It enumerates what the hook runs and will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would hold up better.
  2. Beta values in the quickstart. The m w² = 2 k_B T relation is stated for T, but I haven't seen β = n k_B T / (B²/2μ₀) stated for the beta values. One sentence would cover them under the "fragile" rule in CLAUDE.md.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

Class, function and module pages take the object's own name as their
title (Plasma, hist1d), so the sidebar no longer repeats the package
path; each page states its import line instead. Submodule tables list
short names, and the API sections drop the word "Module".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 26s —— View job


Review of PR #528

I read the commit list (18 commits) and the diff stat against origin/master (24 files, +940/-182). I re-checked the quickstart's beta section. I didn't run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests passed.

Verdict: looks good. I found no blocking issues. This is the ninth pass. Since the last pass the diff added the usage.rst "Make a Plot" section, the autosummary template and API page title changes, and the rst display-options test change. I found no new problems in them.

Non-blocking, optional (repeated from earlier passes)

  1. README pre-commit list. It enumerates what the hook runs and will drift when .pre-commit-config.yaml changes. Pointing to the config file for the full list would hold up better.
  2. Beta values (quickstart.rst:118-123). The prose calls beta and R dimensionless and defines R. It does not state β = n k_B T / (B²/2μ₀), so the plasma.beta("p1") output stays a pinned number under the "fragile" rule in CLAUDE.md. One sentence with the relation would cover it.
  3. tests/test_docs_plot_blocks.py.
    • min(...) over the body lines in _plot_blocks raises a bare ValueError at collection time if a .. plot:: directive has no body. A guard that names the file and line would be easier to read.
    • The regex skips .. plot:: script.py blocks silently.
    • Please confirm the Spent-When/Supersedes header against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

The Index repr names the level, M. Its dtype, str, holds across the
supported pandas 3.x range, so the list form kept by the previous commit
was not needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 14s —— View job


Review of PR #528

This is the tenth pass. I read tests/test_docs_plot_blocks.py in full and grepped the quickstart for the beta section. I didn't run the suite or the docs build. I'm relying on your reported results: docs build, 42 and 49 doctests, 6650 tests passed.

Verdict: looks good. I found no blocking issues.

Confirmed in the current head

  • tests/test_docs_plot_blocks.py:49: min(...) over the body lines raises a bare ValueError if a .. plot:: block has no code, which would break collection of the whole module.
  • tests/test_docs_plot_blocks.py:30: the regex matches only a bare .. plot::. A .. plot:: script.py block is skipped without notice.
  • quickstart.rst:107 states m w² = 2 k_B T for the temperatures. quickstart.rst:118-123 calls beta and R dimensionless and defines R, but it doesn't state the relation for beta.

Non-blocking, optional (repeated from earlier passes)

  1. Empty-block guard. Use min(..., default=0) and assert that the body is non-empty, with a message naming the file and line.
  2. Beta relation. Add one sentence with β = n k_B T / (B²/2μ₀). That turns the plasma.beta("p1") output from a pinned number into a derivation, per the "fragile" rule in CLAUDE.md.
  3. README pre-commit list. It will drift when .pre-commit-config.yaml changes. Point to the config file for the full list.
  4. Test header. Confirm the Spent-When/Supersedes header against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

Where two API pages share a short name (the base modules of core and
plotting, the two tools modules, the two Ion classes), each is titled by
its path below solarwindpy (core.base, plotting.base); unique names stay
short. conf.py lists the repeated names in autosummary_context, from the
public modules and the classes and functions each defines, and the
templates read it; no event hook changes what autosummary generates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 18s —— View job


Review of PR #528

This is the eleventh pass. I re-read tests/test_docs_plot_blocks.py and checked the quickstart's beta section. I didn't run the suite or the docs build. I'm relying on your reported results.

Verdict: looks good. I found no blocking issues. The diff has 20 commits since origin/master, and nothing new has landed that changes my earlier assessment.

Still open (non-blocking, repeated from earlier passes)

  1. Empty-block guard (tests/test_docs_plot_blocks.py:49). min(...) raises a bare ValueError at collection time if a .. plot:: block has no code, and that breaks the whole module. Use min(..., default=0) and assert that the body is non-empty, with a message naming the file and line.
  2. Argument form skipped (tests/test_docs_plot_blocks.py:30). The regex matches only a bare .. plot::, so a .. plot:: script.py block is skipped without notice. This is fine today, because the module says "inline" blocks. A failing assertion on any non-bare plot:: would catch one added later.
  3. Beta relation (quickstart.rst:118-123). The page states m w² = 2 k_B T for T. For the plasma.beta("p1") output it only calls beta dimensionless. Adding β = n k_B T / (B²/2μ₀) would turn that pinned number into a derivation, per the "fragile" rule in CLAUDE.md.
  4. README pre-commit list. It will drift when .pre-commit-config.yaml changes. Point to the config file for the full list.
  5. Test header. Confirm the Spent-When/Supersedes header against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

The Hist1D example shows the plot's path and what it is for. The contour
example fills its contours, and a new figure overlays black contour lines
on the histogram with plot_hist_with_contours and one colorbar. The fit
plot labels its axes with set_labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 17s —— View job


Review of PR #528

This is the twelfth pass. I re-read tests/test_docs_plot_blocks.py and grepped the quickstart for the beta section. I didn't run the suite or the docs build. I'm relying on your reported results.

Verdict: looks good. I found no blocking issues. Nothing has changed my earlier assessment.

Still open (non-blocking, repeated)

  1. Empty-block guard (tests/test_docs_plot_blocks.py:49). min(...) raises a bare ValueError at collection time if a .. plot:: block has no code, and that breaks the whole module. Use min(..., default=0) and assert that the body is non-empty, with a message naming the file and line.
  2. Argument form skipped (tests/test_docs_plot_blocks.py:30). The regex matches only a bare .. plot::, so a .. plot:: script.py block is skipped without notice. This is fine today because the module covers inline blocks. A failing assertion on any non-bare plot:: would catch one added later.
  3. Beta relation (quickstart.rst:118-123). The page calls beta dimensionless but doesn't state β = n k_B T / (B²/2μ₀). The plasma.beta("p1") output stays a pinned number under the "fragile" rule in CLAUDE.md. One sentence with the relation would cover it.
  4. README pre-commit list. It will drift when .pre-commit-config.yaml changes. Point to the config file for the full list.
  5. Test header. Confirm the Spent-When/Supersedes header against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.

Security: nothing of concern. Removing the Pages deploy job also removes a token-using third-party action.

@blalterman
blalterman marked this pull request as draft November 5, 2026 09:02
@blalterman
blalterman marked this pull request as ready for review November 5, 2026 09:05
@blalterman
blalterman merged commit 9c8c5e1 into master Nov 5, 2026
12 checks passed
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Claude finished @blalterman's task in 21s —— View job


Review of PR #528 (thirteenth pass)

The PR is merged. I re-read tests/test_docs_plot_blocks.py and grepped the quickstart for the beta section. I didn't run the suite or the docs build.

Verdict: no blocking issues. Nothing has changed since the twelfth pass, and these are the same open points.

Still open (non-blocking)

  1. Empty-block guard (tests/test_docs_plot_blocks.py:49). min(...) raises a bare ValueError at collection time if a .. plot:: block has no code, and that breaks the whole module. Use min(..., default=0) and assert that the body is non-empty, with a message naming the file and line.
  2. Argument form skipped (tests/test_docs_plot_blocks.py:30). The regex matches only a bare .. plot::, so a .. plot:: script.py block is skipped without notice. That is fine today because the module covers inline blocks. An assertion that fails on any plot:: with an argument would catch one added later.
  3. Beta relation (quickstart.rst:118-123). The page states m w² = 2 k_B T at line 107, but for plasma.beta("p1") it only calls beta dimensionless. One sentence with β = n k_B T / (B²/2μ₀) would turn the pinned output into a derivation, per the "fragile" rule in CLAUDE.md.
  4. README pre-commit list. It will drift when .pre-commit-config.yaml changes. Point to the config file for the full list.
  5. Test header. Confirm the Spent-When/Supersedes header (lines 1-2) against .claude/docs/TEST_PATTERNS.md. I didn't check the exact format.

Because the PR is merged, none of these can change it. If you want them fixed, I can do that in a follow-up.

Security: nothing of concern.

@blalterman
blalterman deleted the docs/quickstart-and-fixes branch November 5, 2026 09:05
@blalterman blalterman mentioned this pull request Nov 5, 2026
16 tasks
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