[Mne_analysis] option preload=True versus preload='True'
Burkhard Maess
maess at cbs.mpg.de
Thu Apr 19 03:26:08 EDT 2018
Hallo, dear MNE-Python team,
recently, I realized that the preload option in mne.io.read_raw_fif offers more than I expected. Below is the line of code, which provides the expected bahaviour, i.e. it opens the rawdata fif file and preloads the data into RAM:
rawdata = mne.io.read_raw_fif(name_of_rawdata_fif,preload=True)
Changing the type of the option value from boolean into string does not throw an error message, but instead it creates a file called True within the current working directory. This is obsiously no preloading into RAM, isn't it? Or does this file work as a buffer? Is this behavior intended or a bug?
rawdata = mne.io.read_raw_fif(name_of_rawdata_fif,preload='True')
Interestingly, the loglevel DEBUG does not tell about creating the funny file True.
cheers,
Burkhard
--
Dr. Burkhard Maess
Max Planck Institute for Human Cognitive and Brain Sciences
Stephanstr. 1a, D-04301 Leipzig, Germany
phone/fax: +49 341 9940-2526/-2511 mail: maess 'at' cbs.mpg.de, http://www.cbs.mpg.de
More information about the Mne_analysis
mailing list