nirspipe.qc.boilerplate.generate#
Auto-generate Methods paragraph and reference list for the report.
Module Contents#
Functions#
Methods prose for one run, from what its sidecars record. |
|
One line saying what a step did, for a table rather than a paragraph. |
|
API#
- nirspipe.qc.boilerplate.generate.generate_methods_text(versions: dict[str, str] | None = None, nirs_dir: Any = None, label: str | None = None, steps: list[tuple[str, dict]] | None = None) dict[str, str]#
Methods prose for one run, from what its sidecars record.
stepsis the step list itself, already slot-filled (seetemplate_slots()), for a caller that assembles it from more than one place: a dyad’s paragraph continues from the files its members were read from into steps that left no file. Otherwisenirs_diris scanned, scoped to the runlabelnames.
- nirspipe.qc.boilerplate.generate.step_sentence(step: str | None, params: dict) str#
One line saying what a step did, for a table rather than a paragraph.
The Methods sentence where there is one, without its citations; otherwise the plain description of a bookkeeping step. Empty for a step this module has never heard of.