Hi there,
I am having a problem when running the tutorial code of source localization that no sulcus and functional data of the inflated brain are displayed, and I dont know what leaded to this situation… Maybe some supported python module is still not installed or applied ? Thanks for your help !
- MNE version:1.1.0
- operating system: Windows 11
Here is the code:
from mne import read_source_estimate
from mne.datasets import sample
import turtle
print(__doc__)
# Paths to example data
sample_dir_raw = sample.data_path()
sample_dir = sample_dir_raw / 'MEG' / 'sample'
subjects_dir = sample_dir_raw / 'subjects'
fname_stc = sample_dir / 'sample_audvis-meg'
stc = read_source_estimate(fname_stc, subject='sample')
# Define plotting parameters
surfer_kwargs = dict(
hemi='lh', subjects_dir=subjects_dir,
clim=dict(kind='value', lims=[8, 12, 15]), views='lateral',
initial_time=0.09, time_unit='s', size=(800, 800),
smoothing_steps=5)
# Plot surface
brain = stc.plot(**surfer_kwargs)
# Add title
brain.add_text(0.1, 0.9, 'SourceEstimate', 'title', font_size=16)
turtle.done()
mne.sys_info() :
Platform: Windows-10-10.0.22000-SP0
Python: 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]
Executable: E:\Py3.9\python.exe
CPU: Intel64 Family 6 Model 165 Stepping 5, GenuineIntel: 20 cores
Memory: 63.8 GB
mne: 1.1.1
numpy: 1.23.1 {}
scipy: 1.8.1
matplotlib: 3.5.2 {backend=QtAgg}
sklearn: 1.1.1
numba: Not found
nibabel: 4.0.1
nilearn: 0.9.1
dipy: Not found
cupy: Not found
pandas: 1.4.3
pyvista: 0.35.2 {OpenGL 4.5.0 NVIDIA 512.52 via NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2}
pyvistaqt: 0.9.0
ipyvtklink: Not found
vtk: 9.1.0
qtpy: 2.1.0 {PyQt5=5.15.2}
ipympl: Not found
pyqtgraph: Not found
pooch: v1.6.0
mne_bids: Not found
mne_nirs: Not found
mne_features: Not found
mne_qt_browser: Not found
mne_connectivity: Not found
mne_icalabel: Not found
None
The Result: