Skip to content

Add detailed step reference docs - #104

Merged
lg345 merged 1 commit into
masterfrom
docs/step-reference
Jul 17, 2026
Merged

Add detailed step reference docs#104
lg345 merged 1 commit into
masterfrom
docs/step-reference

Conversation

@lg345

@lg345 lg345 commented Jul 17, 2026

Copy link
Copy Markdown
Owner

What changed

Expands the "Analysis steps" docs from five raw docstring dumps into a
hand-written reference covering every registered step, organized by category.

New pages under docs/steps/:

  • index.md — step contract, array-shape vocabulary, and a master table of all 28 steps + combine_runs, each linking to its category anchor.
  • loading_filtering.md — loading and shot-selection steps (10).
  • detector.md — correction, geometry, spatial reduction (7).
  • binning.md — axes, bin indices, binned reductions (8).
  • spectra.md — normalize, background subtraction, purge, and the combine_runs reduction.

Each entry documents what the step reads (input shape: nothing / 1D / 2D / 3D),
what it writes, and every tunable parameter with its default.

mkdocs.yml gets a "Step reference" nav section after the YAML guide.
source_analysis.md stays as the source-linked API.

Test

mkdocs build (non-strict, same as CI) renders all five pages, resolves the
nav, and produces no broken-link warnings. Remaining griffe warnings are
pre-existing on legacy XSpect_*.py files.

Hand-written reference for all 28 steps plus combine_runs. One index page
(step contract, array-shape vocabulary, master table) and four category
pages: loading & filtering, detector & spatial, binning, spectra &
reductions. Each entry lists what the step reads, what it writes, and every
tunable parameter with its default.

Wire a Step reference nav section into mkdocs.yml after the YAML guide;
keep source_analysis.md as the source-linked API.
Copilot AI review requested due to automatic review settings July 17, 2026 07:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new hand-written “Step reference” section to the MkDocs site, providing a structured reference for all registered pipeline steps (and the combine_runs reduction) including read/write contracts, shapes, and YAML parameters.

Changes:

  • Adds five new reference pages under docs/steps/, grouped by step category.
  • Adds a “Step reference” section to mkdocs.yml navigation linking the new pages.
  • Documents per-step reads/writes and parameter defaults, plus a master index/table of all steps.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
mkdocs.yml Adds “Step reference” nav entries pointing to the new docs pages.
docs/steps/index.md Introduces the step contract, shape vocabulary, and a master step table with intra-doc links.
docs/steps/loading_filtering.md Documents loading + filtering steps and their YAML parameters.
docs/steps/detector.md Documents detector correction/geometry/spatial reduction steps and parameters.
docs/steps/binning.md Documents axis/index steps and binned-reduction steps and parameters.
docs/steps/spectra.md Documents spectrum finishing steps plus the combine_runs cross-run reduction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/steps/index.md
Comment on lines +24 to +27
A step that can't find its input (`on` missing, or the attribute is `None`)
returns quietly and logs a status message rather than raising. This lets the
same pipeline run on a parent that has no detector loaded (batched path) and on
each batch that does.
Comment thread docs/steps/spectra.md
Comment on lines +75 to +76
- **Reads (per run):** `<detector_key><laser_on_suffix>`,
`<detector_key><laser_off_suffix>`, and their `_bincount` arrays.
Comment thread docs/steps/spectra.md
| `laser_on_suffix` | `"_simultaneous_laser_time_binned"` | laser-on data suffix |
| `laser_off_suffix` | `"_xray_not_laser_time_binned"` | laser-off data suffix |

Results land in `pipe.results` under the reduction name.
@lg345
lg345 merged commit 2e3f802 into master Jul 17, 2026
1 check passed
@lg345
lg345 deleted the docs/step-reference branch July 17, 2026 07:39
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.

3 participants