You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support single-chromophore fNIRS data (HbO only)? #14533
Some public datasets ship only HbO, e.g. Hudak et al. 2018 (Hitachi ETG-4000, doi:10.17026/DANS-XRK-HNHB).
The fNIRS data validation method _check_channels_ordered called in most api functions requires both chromophores, so e.g. set_montage and interpolate_bads raise
ValueError: At least two chromophore must exist in info, got ['hbo']
Should this be supported? It looks feasible and easy to implement, since chromophores are always(?) treated independently in data processing functions like the ones above. But would probably require additional checks or handling of single chromophore data in places like plotting functions.
I can implement if yes.
Describe your proposed implementation
Relax the check in _check_channels_ordered (mne/preprocessing/nirs/nirs.py) for chromophore data to accept ["hbo"] or ["hbr"] alone in addition to ["hbo", "hbr"].
Activity
yashgoyal0110 commentedon Nov 13, 2026
assign please!
larsoner commentedon Nov 17, 2026
@kalomak feel free to open a PR if you're up for implementing this!