stc plot volume source estimate

  • MNE version: 0.24.0
  • operating system: macOS 12

Dear community:
I have an issue when running this code attached . I understand there has to be some mistake when doing a cerebellar source model.

Traceback (most recent call last):
File “/Users/andraderenew/Downloads/EEG_codes/eeg.py”, line 49, in
brain = stc.plot(**surfer_kwargs)
File “/opt/anaconda3/envs/mne/lib/python3.9/site-packages/mne/source_estimate.py”, line 655, in plot
brain = plot_source_estimates(
File “”, line 24, in plot_source_estimates
File “/opt/anaconda3/envs/mne/lib/python3.9/site-packages/mne/viz/_3d.py”, line 1873, in plot_source_estimates
return _plot_stc(
File “/opt/anaconda3/envs/mne/lib/python3.9/site-packages/mne/viz/_3d.py”, line 1911, in _plot_stc
volume = _check_volume(stc, src, surface, backend)
File “/opt/anaconda3/envs/mne/lib/python3.9/site-packages/mne/viz/_3d.py”, line 1711, in _check_volume
_validate_type(src, SourceSpaces, ‘src’,
File “/opt/anaconda3/envs/mne/lib/python3.9/site-packages/mne/utils/check.py”, line 444, in _validate_type
raise TypeError(f"{_item_name} must be an instance of {type_name}, "
TypeError: src must be an instance of src when stc is a mixed or volume source estimate, got <class ‘NoneType’> instead.