Skip to content

Docs audit follow-up: performance-tips appendix, gallery and contribution fixes#18

Open
TomaSusi wants to merge 3 commits into
autodoc2-experimentfrom
docs-gaps
Open

Docs audit follow-up: performance-tips appendix, gallery and contribution fixes#18
TomaSusi wants to merge 3 commits into
autodoc2-experimentfrom
docs-gaps

Conversation

@TomaSusi

@TomaSusi TomaSusi commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up from a docs coverage audit. Stacked on #9 (base autodoc2-experiment); retarget to main after #9 merges.

  • Complete the performance-tips appendix (user_guide/appendix/performance_tips.ipynb) — the long-hidden outline is now a full page covering simulation parameters (gpts, slices, cell size, scan/ensemble sampling), PRISM, memory management (reduce early, chunk size, workers), FFT library/threads/grid-size choices, and float precision, each backed by a short executed demonstration (run against abTEM v1.0.10). Corrects the outline's stale claim that MKL is the default FFT (it's FFTW). Now included in the TOC — easy to re-hide if it needs more work.
  • Fix stale contribution docs (abtem/contribute.md) — the gallery instructions still described the retired examples.yml + generator-script workflow; they now describe direct editing of examples.md. The deployment sentence now explains the stable (release → site root) / dev (main → /dev/) model.
  • Surface the animations example — a complete notebook with an existing thumbnail that was never listed in the gallery; it now has a card and toctree entry. The gallery's own stale gallery.yml sentence now points at the contribute guide.
  • Drop the exclude pattern for the nonexistent reference/benchmarks directory.

The audit's remaining findings became a backlog of 8 scoped issues: #10 (MTF/MCF detector response), #11 (magnetism.gpaw), #12 (widgets tutorial), #13 (parametrizations/integrals), #14 (LaplaceOperator), #15 (ptychography beyond ePIE), #16 (ensembles appendix), #17 (inelastic quickstarts). The four complete-but-hidden tutorials (epie, visualizations, custom_simulation_objects, plasmons) deliberately stay hidden; several issues point at them as draft material.

Test plan

  • Full clean jupyter-book build: warning count drops 15 → 13 (exactly the two orphan-page warnings resolved by this PR); no new warnings
  • performance_tips.ipynb executed end-to-end in the abtem-py3.13 env; widget-state check clean
  • Preview spot-checks: appendix page renders all sections with outputs; gallery shows 11 cards including Animations; contribute page shows the updated workflow and deployment text

🤖 Generated with Claude Code

TomaSusi and others added 3 commits July 7, 2026 21:56
contribute.md's gallery instructions still described the retired
examples.yml + generator-script workflow (files parked as .bak since
the 1.0.7 verification pass); they now describe the current direct
editing of examples.md. The deployment sentence now explains the
stable (release, site root) / dev (main, /dev/) publishing model, and
a Windows-style path separator is fixed. The complete animations
example notebook (thumbnail and all) was never listed in the gallery;
it now has a card and toctree entry, and the gallery's own stale
gallery.yml sentence points at the contribute guide instead. Drops
the exclude pattern for the nonexistent reference/benchmarks dir.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Fleshes out the long-hidden outline into a full page: simulation
parameters (gpts, slices, cell size, scan and ensemble sampling),
PRISM, memory management (reduce early, chunk size, workers), FFT
library/threads/grid-size choices, and float precision. Each claim is
backed by a short executed demonstration (with a warmup run so the
first timing isn't dominated by FFT planning); the FFT default is
corrected from the outline's MKL claim to the actual FFTW. Executed
against abTEM v1.0.10; widget check clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Turns the 6-cell stub into a full page: base vs ensemble axes (with an
exploded defocus-series figure), the abtem.distributions factories and
their weights, the ensemble_mean tag and how reduction applies it
(explicitly via reduce_ensemble or automatically during detection,
demonstrated by comparing lazy measurement shapes), multidimensional
outer-product ensembles, and how ensembles map onto Dask blocks for
parallelization. Executed against abTEM v1.0.10; widget check clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@TomaSusi

TomaSusi commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

Added the ensembles appendix (issue #16) to this PR in 99468ac — same pattern as performance-tips: executed against abTEM v1.0.10, widget check clean, included in the TOC.

🤖 Generated with Claude Code

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