bemobil_mne.preproc.split_by_rigid_body#

bemobil_mne.preproc.split_by_rigid_body(raw, rb_names=None)[source]#

Return a dict of per-rigid-body Raw sub-objects.

Picks all channels whose name starts with each rigid body identifier (including velocity / acceleration channels appended by process_rigid_body()).

Parameters:
rawmne.io.BaseRaw

Recording (typically the output of process_rigid_body()).

rb_nameslist of str | None

Rigid body names. Detected automatically when None.

Returns:
dict of {str: mne.io.Raw}