- MNE version: e.g. 1.7
- operating system: Windows 11
- Python 3.12
I am trying run the code available from the tutorial for the same data.
https://mne.tools/stable/auto_tutorials/preprocessing/70_fnirs_processing.html
Viewing location of sensors over brain surface
Section does not shows the montage. I see a 3D brain popping up, but no sign of channels or any optodes (sensors).
Code mentioned below.
subjects_dir = mne.datasets.sample.data_path() / “subjects”
brain = mne.viz.Brain(
“fsaverage”, subjects_dir=subjects_dir, background=“w”, cortex=“0.5”
)
brain.add_sensors(
raw_intensity.info,
trans=“fsaverage”,
fnirs=[“channels”, “pairs”, “sources”, “detectors”],
)
brain.show_view(azimuth=20, elevation=60, distance=400)