[Mne_analysis] <maybeencodingerror>

Lau Møller Andersen lau.andersen at cnru.dk
Thu Sep 1 06:37:46 EDT 2016
Search archives:

Dear list

I have been trying to reconstruct my epochs based on the induced power 
using <mne.minimum_norm.source_induced_power>.


I get a <maybeencodingerror> from running this command. I cannot figure 
out whether this is a user error or a bug/problem. I have been able to 
use the exact same code on other files though with shorter epochs (-250 
to 750 ms)

mne.minimum_norm.time_frequency.source_band_induced_power(
                             to_reconstruct[trial_type], ## epochs are 
from -500 to 1500 ms
                             inverse_operator, mu_bands, method=method,
                             n_cycles=3, n_jobs=16)

Preparing the inverse operator for use...
     Scaled noise and source covariance from nave = 1 to nave = 1
     Created the regularized inverter
     The projection vectors do not apply to these channels.
     Created the whitener using a full noise covariance matrix (0 small 
eigenvalues omitted)
     Computing noise-normalization factors (dSPM)...
[done]
Picked 306 channels from the data
Computing inverse...
(eigenleads need to be weighted)...
Reducing data rank to 306
Computing source power ...
Traceback (most recent call last):

   File "<ipython-input-4-50e967105495>", line 1, in <module>
runfile('/home/lau/analyses/pam_oddball/scripts/absence/python/absence_analysis_v2.py', 
wdir='/home/lau/analyses/pam_oddball/scripts/absence/python')

   File 
"/home/lau/anaconda2/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", 
line 685, in runfile
     execfile(filename, namespace)

   File 
"/home/lau/anaconda2/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", 
line 78, in execfile
     builtins.execfile(filename, *where)

   File 
"/home/lau/analyses/pam_oddball/scripts/absence/python/absence_analysis_v2.py", 
line 378, in <module>
     mu_bands)

   File "absence_functions_v2.py", line 835, in source_estimate
     n_cycles=7, n_jobs=4)

   File "<string>", line 2, in source_band_induced_power

   File "/home/lau/anaconda2/lib/python2.7/site-packages/mne/utils.py", 
line 628, in verbose
     return function(*args, **kwargs)

   File 
"/home/lau/anaconda2/lib/python2.7/site-packages/mne/minimum_norm/time_frequency.py", 
line 129, in source_band_induced_power
     prepared=prepared)

   File "<string>", line 2, in _source_induced_power

   File "/home/lau/anaconda2/lib/python2.7/site-packages/mne/utils.py", 
line 628, in verbose
     return function(*args, **kwargs)

   File 
"/home/lau/anaconda2/lib/python2.7/site-packages/mne/minimum_norm/time_frequency.py", 
line 275, in _source_induced_power
     for data in np.array_split(epochs_data, n_jobs))

   File 
"/home/lau/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", 
line 666, in __call__
     self.retrieve()

   File 
"/home/lau/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", 
line 518, in retrieve
     self._output.append(job.get())

   File "/home/lau/anaconda2/lib/python2.7/multiprocessing/pool.py", 
line 567, in get
     raise self._value

*MaybeEncodingError*: Error sending result: '(array([[[  
4.33156061e-20,   4.39577027e-20, 4.45972043e-20, ...,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160901/aeb62dce/attachment.html 


More information about the Mne_analysis mailing list