Hi MNEers,
When I tried to run plot_sensors_connectivity.py
I got the following error,
Computes the Phase Lag Index (PLI) between all gradiometers and shows the
connectivity in 3D using the helmet geometry. The left visual stimulation data
are used which produces strong connectvitiy in the right occipital sensors.
Opening raw data file F:\TDDOWNLOAD\MNE_sample_data\MNE-sample-data-processed\MN
E-sample-data-python/MEG/sample/sample_audvis_filt-0-40_raw.fif...
Read a total of 4 projection items:
PCA-v1 (1 x 102) idle
PCA-v2 (1 x 102) idle
PCA-v3 (1 x 102) idle
Average EEG reference (1 x 60) idle
Range : 6450 ... 48149 = 42.956 ... 320.665 secs
Ready.
4 projection items activated
73 matching events found
Connectivity computation...
Reading 606 ... 711 = 4.036 ... 4.735 secs...
[done]
Applying baseline correction ... (mode: mean)
Reading 1026 ... 1131 = 6.833 ... 7.532 secs...
[done]
Applying baseline correction ... (mode: mean)
Traceback (most recent call last):
File "plot_sensor_connectivity.py", line 56, in <module>
mt_adaptive=False, n_jobs=2)
File "D:\Python\lib\site-packages\mne-0.6.git-py2.7.egg\mne\utils.py", line 27
9, in dec
return function(*args, **kwargs)
File "D:\Python\lib\site-packages\mne-0.6.git-py2.7.egg\mne\connectivity\spect
ral.py", line 694, in spectral_connectivity
tmax_idx = n_times_in
UnboundLocalError: local variable 'n_times_in' referenced before assignment
Anyone ever encounter the similar error info?
How to solve it ?
Thank you in advance.
Best wishes,
Junpeng
------------------ Original ------------------