On Fri, 5 Oct 2007, Roland Marcus Rutschmann wrote:
> Older versions of spm didn't store the full qualified names (with path) but
> only the file names of eg the con_0001.img. The latest version saves the full
> path.
>
> K>> SPM.xCon.Vspm
>
> ans =
>
> fname: '/loctmp/Statistik/T-Tests/test/spmT_0001.img'
I think this is an unwanted side effect of some changes to
spm_select('cpath',...). There will be an fix for this in the next set of
updates. However, this obviously will not change 'broken' SPM.mat files -
you should try the newest version of the Volumes toolbox 'Change SPM.mat
paths'.
Volkmar
>
>
> If the path doesn't exist there is a (IMHO broken) fall back in
> spm_get_data.m:
> if exist(V(i).fname,'file') ~=2
> [p,n,e] = fileparts(V(i).fname);
> V(i).fname = fullfile(n,e);
> end
>
> Unfortunately fullfile is not meant to put an extension on a file name (at
> least in matlab 2006/2007). So the line should be:
>
> V(i).fname = strcat(n,e);
>
> otherwise there's a file separator between the filename and its extension.
>
> This leaves a problem: I the old path still exists because of a copy or a new
> analysis or just by chance, one might get an unexpected result. Or am I
> missing something here?
>
> Regards and a nice weekend,
>
> Roland
>
>
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg http://fbi.uniklinik-freiburg.de/
|