Repository navigation
docs: a working quickstart, correct setup docs, one docs host - #528
Conversation
- 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 finished @blalterman's task in 20s —— View job Review of PR #528I read the full diff against Verdict: looks good. I found no blocking issues. Checks I made:
Minor, non-blocking suggestions:
Security: nothing of concern. Removing the GitHub Pages deploy job also removes a |
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 finished @blalterman's task in 13s —— View job Review of PR #528I read the diff against Verdict: looks good. I found no blocking issues. Checked
Non-blocking suggestions
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 14s —— View job Review of PR #528I read the diff against Verdict: looks good. I found no blocking issues. Checked
Non-blocking suggestions (these repeat the earlier reviews, and none is a blocker)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 12s —— View job Review of PR #528I checked the diff stat (17 files, +275/-134) and the commit list against 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 Non-blocking suggestions (all three repeat the earlier reviews)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 10s —— View job Review of PR #528I read the commit list and diff stat against 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 Non-blocking suggestions (none is new)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 18s —— View job Review of PR #528I read the diff stat against 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 Already addressed in the current head
Non-blocking, optional
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 13s —— View job Review of PR #528I read the commit list and diff stat against 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 New since the last pass:
Already addressed
Non-blocking, optional (repeated)
Security: nothing of concern. Removing the Pages |
|
Claude finished @blalterman's task in 20s —— View job Review of PR #528I read the commit list (15 commits) and the diff stat against 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
Already addressed
Non-blocking, optional (repeated from earlier passes)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 46s —— View job Review of PR #528I read the commit list (17 commits) and the diff stat against Verdict: looks good. I found no blocking issues. This is the eighth pass.
Non-blocking, optional (repeated)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 26s —— View job Review of PR #528I read the commit list (18 commits) and the diff stat against Verdict: looks good. I found no blocking issues. This is the ninth pass. Since the last pass the diff added the Non-blocking, optional (repeated from earlier passes)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 14s —— View job Review of PR #528This is the tenth pass. I read Verdict: looks good. I found no blocking issues. Confirmed in the current head
Non-blocking, optional (repeated from earlier passes)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 18s —— View job Review of PR #528This is the eleventh pass. I re-read Verdict: looks good. I found no blocking issues. The diff has 20 commits since Still open (non-blocking, repeated from earlier passes)
Security: nothing of concern. Removing the Pages |
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 finished @blalterman's task in 17s —— View job Review of PR #528This is the twelfth pass. I re-read Verdict: looks good. I found no blocking issues. Nothing has changed my earlier assessment. Still open (non-blocking, repeated)
Security: nothing of concern. Removing the Pages |
|
Claude finished @blalterman's task in 21s —— View job Review of PR #528 (thirteenth pass)The PR is merged. I re-read Verdict: no blocking issues. Nothing has changed since the twelfth pass, and these are the same open points. Still open (non-blocking)
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. |
What changed
docs/source/tutorial/quickstart.rst): runs end to end onswp.examples.load_plasma(), covering the M/C/S frame, n, |v|, w, T in kelvin, beta, R, an"a+p1"total, aHist2D(agg, path and make_plot, noted as a three-row demonstration), and aLinefit'spoptandresults. Every example is a doctest. Thetutorial.rststub is folded in, so the quickstart sits after Installation in the User Guide toctree.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--targetedand the drifted counts. RELEASING uses Python 3.12.default_install_hook_types: [pre-commit, commit-msg], so plainpre-commit installalso installs the commit-message check."a+p1"total, as do beta, R, cs and ca built from them. Onlywraises. Also documentsn(..., skipna=False).deployjob is removed (its build check stays), pyproject lists Read the Docs asDocumentation, and README links it.documentation_review.rst(a quarterly review that never ran). conf.py now hasneeds_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 succeededpytest --doctest-glob='*.rst' docs/source: 42 passedpytest -p no:doctest README.rst docs/source/tutorial/quickstart.rst docs/source/installation.rst: 49 passedpre-commit installinstalled both.git/hooks/pre-commitand.git/hooks/commit-msgNote: the first commit (pre-commit default hook types, 6a05643) reached
masterdirectly. An accidental push did it: this branch first trackedorigin/masterunderpush.default=upstream. It is already on master, so this PR's diff begins with the second commit.🤖 Generated with Claude Code