Issue
data = pd.Series([-0.5, -0.7, -0.3, 0.1, 0.15, 0.3, 0.55],
index=['F3', 'Fz', 'F4', 'C3', 'Cz', 'C4', 'Pz'])
fig = yasa.topoplot(data, vmin=-1, vmax=1, n_colors=8,
cbar_title="Pearson correlation")
TypeError: plot_topomap() got an unexpected keyword argument 'vmin'
Did anyone solve this problem when trying to use yasa.topolot? I'm using yasa 0.6.3 and mne 1.6.0, any help appreciated! thank you
Solution
There is a current issue at GitHub that's the same of your problem:
While using
topoplot()
function, I get an error thatmne.viz.plot_topomap()
does not have some parameters (vmin
andvmax
, instead it only has avlim
parameter which takes a tuple of the two limits). I solved this by updating the function parameters as they are on the mne documentation. I suppose the mne library was updated, but the current yasa version uses the old version of mne.
The solution currently is either
remove your current yasa package using
python -m pip uninstall yasa
and install directly from GitHub (where it's supposedly fixed) usingpython -m pip install git+https://github.com/raphaelvallat/yasa
since the
yasa.topoplat
function is only a wrapper, use directly themne.viz.plot_topomap
function, setting thevlim
parameter to(-1, 1)
Answered By - enzo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.