common
tit.reporting.generators.common ¶
What the simulator, flex-search and ex-search reports share: the montage on the EEG cap, the ROI's name and writing the file.
The cap figure is the app's own overlay (:func:tit.tools.montage_visualizer.visualize_montage,
the image a simulation writes to montage_imgs/), converted to WebP; nothing here draws a head.
per_channel ¶
"1" when every channel carries the same current, else "0.7 / 1.3" (mA).
channel_rows ¶
(Ch 1A, "AF3 → PO10, 1 mA") per pair, named as the cap image's legend names them.
Source code in tit/reporting/generators/common.py
cap_figure ¶
cap_figure(num: int, pairs: list[list[str]], eeg_net: str, currents_mA: list[float], caption: str = '') -> str
The montage on the app's EEG-cap overlay, beside the channel list; the list alone when the net has no cap template.
Source code in tit/reporting/generators/common.py
roi_summary ¶
The target as the run's ROI confirmation recorded it (roi.tetravox.json), with label
names from the atlas's lookup table: {name, atlas, volume_mm3, centroid, gm_overlap}.
Source code in tit/reporting/generators/common.py
write_report ¶
write_report(html: str, project_dir: str | Path, subject_id: str, prefix: str, budget: int, out_dir: str | Path | None = None, t0: float | None = None, label: str = 'Report') -> Path
Write <reports>/sub-<id>/<prefix>_<timestamp>.html (or into out_dir), log its size and
time, and record it as a report artifact of the running job (a no-op outside a job).