nirspipe.qc.figures.subject.brain_views#
Static 3D three-view brain figure with channel links coloured by quality.
A channel is the source-detector segment, so quality is drawn on the link, not on a sphere at the channel midpoint. Colours follow the 2-D optode flat map so the two panels of the combined figure read the same way, its optodes included: a source is a cube and a detector a sphere, each filled by the share of its long channels rejected.
Three camera perspectives (frontal, left lateral, superior) rendered off-screen and assembled into a single base64 PNG.
Module Contents#
Functions#
Render 3-view brain figure and return as base64 PNG string. |
Data#
API#
- nirspipe.qc.figures.subject.brain_views.logger = 'get_logger(...)'#
- nirspipe.qc.figures.subject.brain_views.quality_brain_views(ch_names: list[str], coords_head: numpy.ndarray, good_mask: numpy.ndarray, raw: mne.io.Raw | None = None, sci_scores: dict[str, float] | None = None, *, sci_threshold: float, sep_bands=None) str#
Render 3-view brain figure and return as base64 PNG string.
A failed render raises, so the report lists it rather than leaving the panel blank.
sep_bandstells the optodes which of their channels are long.