mne-tools / mne-nirs

Process Near-Infrared Spectroscopy Data in MNE
https://mne.tools/mne-nirs/
BSD 3-Clause "New" or "Revised" License
79 stars 35 forks source link

Surface projection not working with HbR #487

Closed HanBnrd closed 1 year ago

HanBnrd commented 1 year ago

Describe the bug

The 3D surface projection of the GLM estimates is working with HbO chroma but not with HbR.

Steps to reproduce

When following the GLM analysis (measured) tutorial, instead of doing the surface projection on HbO:

glm_est.copy().surface_projection(condition="Tapping_Right", view="dorsal", chroma="hbo")

we do it with HbR:

glm_est.copy().surface_projection(condition="Tapping_Right", view="dorsal", chroma="hbr")

Expected results

The 3D surface projection is displayed properly.

Actual results

An error is returned:

ValueError: picks ('hbo') could not be interpreted as channel names (no channel "['hbo']"), channel types (no type "None"), or a generic type (just "all" or "data")