nirspipe.qc.figures.subject.optode_layout#
2-D optode flat map: channels coloured by SCI, optodes by the share of their long channels rejected.
Module Contents#
Functions#
Matplotlib static optode flat map. Returns base64 PNG or None. |
API#
- nirspipe.qc.figures.subject.optode_layout.optode_layout_static(raw: mne.io.Raw, sci_scores: dict[str, float], bad_channels: list[str], sci_threshold: float, sep_bands=None) str | None#
Matplotlib static optode flat map. Returns base64 PNG or None.
A pair in
bad_channelsis red whatever its SCI, so this is a quality map rather than an SCI map: a channel rejected on its passing-window share is never drawn green beside a table calling it BAD.Each source (square) and detector (circle) is filled by the share of its long channels rejected, white for none to the rejected red for all, so an optode that lost every channel stands apart from losses spread over the montage. An optode only short channels use is a small grey mark.
sep_bandsis the run’s separations; None takes the package defaults.Optodes sit where MNE’s topomap projection puts them, inside MNE’s head outline, so this map and the report’s head maps describe the same head. A montage with no fitted sphere falls back to plain x/y inside a circle fitted to the optodes; one no reading placed is drawn as laid out, with no head.