mne-tools/mne-python — pull request #208 by christianmbrodbeck (2012-12-02 20:46:27+00:00)
Title: WIP example

I had some trouble updating the example dataset and would suggest some changes in this PR. Most importantly I got this error, which could be avoided by first deleting the existing dataset:

>>> mne.datasets.sample.data_path(path='/Users/christian/Documents/Eclipse/projects/mne-python/examples', force_update=True)
Downloading data, please Wait (1.3 GB)...
ftp://surfer.nmr.mgh.harvard.edu/pub/data/MNE-sample-data-processed.tar.gz

Decompressiong the archive: MNE-sample-data-processed.tar.gz
Traceback (most recent call last):
File "", line 1, in
File "/Users/christian/Documents/Eclipse/projects/mne-python/mne/datasets/sample/__init__.py", line 62, in data_path
tarfile.open(archive_name, "r:gz").extractall(path=path)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/tarfile.py", line 2048, in extractall
self.extract(tarinfo, path)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/tarfile.py", line 2085, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/tarfile.py", line 2161, in _extract_member
self.makefile(tarinfo, targetpath)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/tarfile.py", line 2200, in makefile
target = bltn_open(targetpath, "wb")
IOError: [Errno 13] Permission denied: '/Users/christian/Documents/Eclipse/projects/mne-python/examples/MNE-sample-data/subjects/sample/mri/brain-neuromag/sets/COR.fif'