Dear SPM users,
I found a really strange bug.
I have 2 directories:
/data/spm8dataFiles_40chan_120trial_-200prestimNew
/data/spm8dataFiles_40chan_120trial_-200prestimOld
and different versions of files with the same name in it
breMffspm8_User1.mat
if I try
>> Dold = spm_eeg_load('/data/spm8dataFiles_40chan_120trial_-200prestimOld/breMffspm8_User1.mat');
>> Dnew = spm_eeg_load('/data/spm8dataFiles_40chan_120trial_-200prestimNew/breMffspm8_User1.mat');
then I have
>> Dold(1,1,1)
ans =
26.3146
>> Dnew(1,1,1)
ans =
0.7058
>>
BUT, if I RENAME the New folder
/data/spm8dataFiles_40chan_120trial_-200prestimNew
to
/data/spm8dataFiles_40chan_120trial_-200prestim
And run the EXACTLY same commands (just used matlab buffer and deleted New...)
>> Dold = spm_eeg_load('/data/spm8dataFiles_40chan_120trial_-200prestimOld/breMffspm8_User1.mat');
>> Dnew = spm_eeg_load('/data/spm8dataFiles_40chan_120trial_-200prestim/breMffspm8_User1.mat');
then I have this
>> Dold(1,1,1)
ans =
0.7058
>> Dnew(1,1,1)
ans =
0.7058
>>
The SPM_EEG_LOAD reads the New file for both.
Actually, if I put any folder named
/data/spm8dataFiles_40chan_120trial_-200prestim
It will be loaded instead, no matter the Postfix I use in the directory...
If I rename a third different folder as
/data/spm8dataFiles_40chan_120trial_-200prestim, I get a third
different value
>> Dold = spm_eeg_load('/home/leonardo/Work/eeg/sublibaby_data/12mois/EEGdata_NF/spm8dataFiles_40chan_120trial_-200prestimOLD/breMffspm8_User1.mat');
>> Dold(1,1,1)
ans =
1.0545
>>
Its easy to avoid this renaming the folders though...
Best Regards
Leonardo Barbosa
|