Skip to content

Docs: plugins page and proton CT plugin reference - #987

Merged
AnderBiguri merged 2 commits into
plugins/pct-pythonfrom
plugins/docs
Nov 28, 2026
Merged

AnderBiguri merged 2 commits into
plugins/pct-pythonfrom
plugins/docs

Conversation

@AnderBiguri

Copy link
Copy Markdown
Member

What

Documentation for TIGRE plugins in general and the proton CT plugin in particular. Stacked on #986 (base plugins/pct-python), which is stacked on #985, so the three can be reviewed and merged together. Retarget to master after them.

  • New page docs/user-guide/plugins.md: what plugins are and why (optional parts outside core, same names in both languages), a table of plugins, building them (TIGRE_PLUGINS=<name>|all in Python, Compile <Name> / Compile all in MATLAB; release wheels have no compiled plugins), where they live, and how to add one: code layout, Compile.m and setup.py hooks, the ImportError pattern, the test-skip pattern (pytest 9's importorskip does not skip the plugin's own ImportError, see c4c3556 in Python proton CT plugin: tigre.plugins.pct.pCTCubicSpline #986), docs and demos.
  • User guide index: a new "Plugins" section (plugins, proton CT), moved out of "How-to guides".
  • API reference: Python and MATLAB "Plugins" pages with pCTCubicSpline; tigre.plugins.pct._pct added to autodoc_mock_imports, and the MATLAB API generator gets a plugins group.
  • proton-ct.md: links to the plugins page, the API pages and the paper (cite it); parallel beam is the checked mode, cone exists but is unchecked.
  • TIGRE.bib (both): Kaser et al. 2023 (Z Med Phys, the plugin) under pCTCubicSpline, so citeme('pCTCubicSpline') works, and Collins-Fekete et al. 2016 (the cubic-spline method).
  • AGENTS.md: where plugins live and a link to the page.
  • Changelog line.

Tests

None (docs only).

What was and was not tested

Written by an AI agent (Claude). sphinx-build -W --keep-going -b html docs ... passes with no warnings; checked that the Python and MATLAB plugin API pages render pCTCubicSpline and the user guide shows the Plugins section. citeme('pCTCubicSpline') not run in MATLAB.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6n1VHyq4uNorM3CAiBUPo

…RE.bib

- docs/user-guide/plugins.md: what plugins are, building them (TIGRE_PLUGINS,
  Compile <Name> / all), where they live, and how to add one (build, test
  skip pattern, docs).
- User guide index: a Plugins section with plugins and proton-ct.
- API reference: Python and MATLAB plugin pages (pCTCubicSpline); the
  compiled _pct module is mocked for autodoc.
- proton-ct.md: links to the plugins page, the API and the paper; parallel
  beam is the checked mode.
- TIGRE.bib (both): Kaser et al. 2023 and Collins-Fekete et al. 2016.
- AGENTS.md: where plugins live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6n1VHyq4uNorM3CAiBUPo
@AnderBiguri
AnderBiguri marked this pull request as ready for review November 28, 2026 18:12
@AnderBiguri
AnderBiguri added this pull request to stack #988 November 28, 2026 18:17
Plugins are not built on pull requests (building takes long), so the
release workflow builds TIGRE with TIGRE_PLUGINS=all and imports each
compiled plugin. It does not block attaching the wheels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6n1VHyq4uNorM3CAiBUPo
@AnderBiguri
AnderBiguri merged commit 3bb0550 into master Nov 28, 2026
7 checks passed
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.

2 participants