mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.69k stars 1.31k forks source link

typerror in make_dics when using the csd as input #8677

Closed EPinzuti closed 3 years ago

EPinzuti commented 3 years ago

I pass to make_dics the output of csd_multitaper and I get this typerror

File "/data/home1/epinzuti/anaconda3/lib/python3.7/site-packages/mne/beamformer/_dics.py", line 174, in make_dics info, fwd, csd = equalize_channels([info, forward, csd])

File "", line 24, in equalize_channels

File "/data/home1/epinzuti/anaconda3/lib/python3.7/site-packages/mne/channels/channels.py", line 148, in equalize_channels allowed_types_str)

File "/data/home1/epinzuti/anaconda3/lib/python3.7/site-packages/mne/utils/check.py", line 389, in _validate_type % (item_name, type_name, type(item),))

TypeError: Instances to be modified must be an instance of Raw, Epochs, Evoked, TFR, Forward, Covariance, CrossSpectralDensity or Info, got <class 'mne.time_frequency.csd.CrossSpectralDensity'> instead

agramfort commented 3 years ago

@EPinzuti please make an effort when you open an issue to follow the template we took the time to write:

https://github.com/mne-tools/mne-python/issues/new?assignees=&labels=BUG&template=bug_report.md&title=

you don't provide any code snippet, etc.

thanks for your understanding

drammock commented 3 years ago

duplicate of #8678