Hi all,
I ran into what is probably a rare error using compute_source_psd_epochs
with adaptive=True. For certain labels, if n_jobs is greater than the
number of CPUs, the process will crash. In my case it was n_jobs=32, for a
condition with 20 epochs, in G_front_inf-Orbital-rh from aparc.a2009s. For
several other labels the process ran without error. Using n_jobs =19 or 20
was fine, 21 or higher failed reliably.
This may not affect much else. My workaround was to set n_jobs and test
the value against multiprocessing.cpu_count() early in the script. Other
options would be for the user to pay attention to which machine they are
using, or to be less greedy with CPU usage...
The traceback is below, for those who are into that kind of thing. This was
using the master downloaded on May 19 (0.8.git).
Jon
Computing PSD for offset event 8192 label G_front_inf-Orbital-rh at index 10
Considering frequencies 4 ... 20 Hz
Preparing the inverse operator for use...
Scaled noise and source covariance from nave = 1 to nave = 1
Created the regularized inverter
Created an SSP operator (subspace dimension = 7)
Created the whitener using a full noise covariance matrix (239 small
eigenvalues omitted)
Picked 306 channels from the data
Computing inverse...
(eigenleads need to be weighted)...
Reducing data rank to 21
Using 5 tapers with bandwidth 4.0Hz
Processing epoch : 1
[Parallel(n_jobs=32)]: Done 1 out of 32 | elapsed: 0.0s remaining:
0.1s
[Parallel(n_jobs=32)]: Done 6 out of 32 | elapsed: 0.0s remaining:
0.1s
[Parallel(n_jobs=32)]: Done 13 out of 32 | elapsed: 0.0s remaining:
0.1s
[Parallel(n_jobs=32)]: Done 20 out of 32 | elapsed: 0.0s remaining:
0.0s
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (3, 0))
Traceback (most recent call last):
File "<stdin>", line 15, in <module>
File
"/export/research/analysis/human/jhouck/namaste_20628/tools/anaconda/lib/python2.7/site-packages/mne-0.8.git-py2.7.egg/mne/minimum_norm/time_frequency.py",
line 572, in _compute_source_psd_epochs
for x in np.array_split(x_mt_src, n_jobs))
File
"/export/research/analysis/human/jhouck/namaste_20628/tools/anaconda/lib/python2.7/site-packages/joblib-0.8.0a3-py2.7.egg/joblib/parallel.py",
line 651, in __call__
self.retrieve()
File
"/export/research/analysis/human/jhouck/namaste_20628/tools/anaconda/lib/python2.7/site-packages/joblib-0.8.0a3-py2.7.egg/joblib/parallel.py",
line 534, in retrieve
raise exception_type(report)
joblib.my_exceptions.JoblibValueError/export/research/analysis/human/jhouck/namaste_20628/tools/anaconda/lib/python2.7/site-packages/joblib-0.8.0a3-py2.7.egg/joblib/my_exceptions.py:26:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
self.message,
: JoblibValueError