Skip to content

ENH: Support single-chromophore fNIRS data - #14562

Open
kalomak wants to merge 2 commits into
mne-tools:mainfrom
kalomak:nirs-single-chromophore
Open

kalomak wants to merge 2 commits into
mne-tools:mainfrom
kalomak:nirs-single-chromophore

Conversation

@kalomak

@kalomak kalomak commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Reference issue (if any)

Closes #14533. Builds on #14561.

What does this implement/fix?

fNIRS haemoglobin data with only one chromophore (e.g. HbO only) failed validation with At least two chromophore must exist in info, so most fNIRS functions could not be used on it. Now hbo, hbr, or both are accepted.

Fixed on the way:
Interpolation assumed two channels per source-detector pair (+ idx % 2), which is not true anymore as nirs data can have more than 2 wls.
Now picks the closest good channel with the same wavelength or chromophore instead.

Additional information

AI disclosure: Written with assistance from Claude Opus 5.5 (Claude Code). I reviewed and verified all code.

@kalomak
kalomak force-pushed the nirs-single-chromophore branch 2 times, most recently from eb55524 to f87a9cf Compare November 18, 2026 15:18

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support single-chromophore fNIRS data (HbO only)?

1 participant