Output Shaping Internals
This page describes the internal handler pipeline that converts grouped BidsFile
items into the emitted channel structures.
Handler Hierarchy
BaseSetHandler owns the common grouping loop and delegates to concrete handlers:
-
PlainSetHandler -
NamedSetHandler -
SequentialSetHandler -
MixedSetHandler
Internal Processing Steps
-
Group files by
loop_overentities. -
Match each file against config keys and set definitions.
-
Accumulate typed set payloads and enforce
requiredgroups. -
Sort sequential dimensions when applicable.
-
Emit
BidsChannelDatafor downstream flattening/emission.
Developer Notes
-
configKeydrives emitted top-level fields. -
suffix_maps_tocontrols file matching suffixes. -
Mixed sets combine named and sequential dimensions in one payload.