nirspipe.qc.common.screen_scope#
Which stretches of a recording the channel screening counts over.
A run holds time no analysis reads: the lead-in before the first block, the gaps between
blocks, the tail after the last one. "task" counts passing windows only inside the
annotated blocks.
This is one channel set either way: only the denominator is restricted, so a contrast between two conditions is never also a contrast between two montages.
Module Contents#
Functions#
The stretches to count over, or None for the whole recording. |
Data#
API#
- nirspipe.qc.common.screen_scope.logger = 'get_logger(...)'#
- nirspipe.qc.common.screen_scope.SCOPE_CHOICES = ('run', 'task')#
- nirspipe.qc.common.screen_scope.resolve_screen_scope(raw: mne.io.Raw, scope: str = 'run') list[tuple[str, float, float]] | None#
The stretches to count over, or None for the whole recording.
"run" -> None "task", blocks annotated -> [("rest", 20.0, 320.0), ...] "task", only short triggers annotated -> None, with a warning
"task"falls back to the whole recording rather than to nothing, since the case it falls back from is a recording carrying triggers instead of blocks. The fallback is logged with what it found, since a silent one leaves two runs screened differently with nothing on disk saying which.