Skip to content

Commit 015b151

Browse files
committed
SPM12 r6906
1 parent a398507 commit 015b151

File tree

1,535 files changed

+39827
-18245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,535 files changed

+39827
-18245
lines changed

@file_array/subsref.m

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
66

77
%
8-
% $Id: subsref.m 4136 2010-12-09 22:22:28Z guillaume $
8+
% $Id: subsref.m 6804 2016-06-08 16:58:48Z john $
99

1010

1111
if isempty(subs), return; end
@@ -64,9 +64,10 @@
6464
if length(sobj)==1
6565
t = subfun(sobj,args{:});
6666
else
67-
dt = datatypes;
68-
dt = dt([dt.code]==sobj(1).dtype); % assuming identical datatypes
69-
t = zeros(di',func2str(dt.conv));
67+
%dt = datatypes;
68+
%dt = dt([dt.code]==sobj(1).dtype); % assuming identical datatypes
69+
%t = zeros(di',func2str(dt.conv));
70+
t = zeros(di','double');
7071
for j=1:length(sobj)
7172
ps = [sobj(j).pos ones(1,length(args))];
7273
dm = [sobj(j).dim ones(1,length(args))];

@gifti/private/Makefile

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
#
44
# Copyright (C) 2015 Wellcome Trust Centre for Neuroimaging
55
#
6-
# $Id: Makefile 6402 2015-04-09 18:11:06Z guillaume $
6+
# $Id: Makefile 6704 2016-01-29 17:23:13Z guillaume $
77

88
include ../../src/Makefile.var
99

1010
SPMMEX = zstream.$(SUF)
1111

1212
ifeq (mex,$(SUF))
13-
export CFLAGS = $(shell $(MEX) -p CFLAGS) -std=c99
13+
export CFLAGS = $(shell $(MEX) -p CFLAGS) -std=c99
1414
else
15-
MEXOPTS += CFLAGS='$$CFLAGS -std=c99'
15+
ifeq (windows,$(PLATFORM))
16+
MEXOPTS += CFLAGS=\"$$CFLAGS -std=c99\"
17+
else
18+
MEXOPTS += CFLAGS='$$CFLAGS -std=c99'
19+
endif
1620
endif
1721

1822
all: $(SPMMEX)

@gifti/private/read_gifti_file.m

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
88

99
% Guillaume Flandin
10-
% $Id: read_gifti_file.m 6404 2015-04-13 14:29:53Z guillaume $
10+
% $Id: read_gifti_file.m 6895 2016-10-03 11:08:49Z guillaume $
1111

1212
% Import XML-based GIfTI file
1313
%--------------------------------------------------------------------------
@@ -125,6 +125,16 @@
125125
end
126126
end
127127

128+
if strcmp(s.attributes.Intent,'NIFTI_INTENT_POINTSET')
129+
if isempty(s.space)
130+
warning('Missing "CoordinateSystemTransformMatrix": assuming I.');
131+
s.space = struct(...
132+
'DataSpace','NIFTI_XFORM_UNKNOWN',...
133+
'TransformedSpace','NIFTI_XFORM_UNKNOWN',...
134+
'MatrixData',eye(4));
135+
end
136+
end
137+
128138
%==========================================================================
129139
function s = gifti_Space(t,uid)
130140
s = struct('DataSpace','', 'TransformedSpace','', 'MatrixData',[]);

@gifti/private/zstream.mexw64

0 Bytes
Binary file not shown.

@meeg/clone.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
% Copyright (C) 2008-2012 Wellcome Trust Centre for Neuroimaging
1212

1313
% Stefan Kiebel, Vladimir Litvak
14-
% $Id: clone.m 5957 2014-04-16 15:23:19Z vladimir $
14+
% $Id: clone.m 6829 2016-07-07 10:16:46Z vladimir $
1515

1616
if nargin < 4
1717
reset = 0;
@@ -27,7 +27,8 @@
2727
disp('Changing the number of channels, so discarding online montages.');
2828
end
2929

30-
new = unlink(this);
30+
new = montage(this, 'switch', 0);
31+
new = unlink(new);
3132

3233
% check file path first
3334
[pth, fname] = fileparts(fnamedat);

@meeg/history.m

+15-7
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
% M/EEG data
44
% FORMAT res = history(this, varargin)
55
% _______________________________________________________________________
6-
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
6+
% Copyright (C) 2008-2016 Wellcome Trust Centre for Neuroimaging
77

88
% Stefan Kiebel
9-
% $Id: history.m 3196 2009-06-11 12:54:47Z vladimir $
9+
% $Id: history.m 6883 2016-09-19 13:42:05Z vladimir $
1010

1111

1212
if isempty(varargin)
@@ -22,14 +22,22 @@
2222

2323
if ischar(varargin{1})
2424
this.history(nh+1).fun = varargin{1};
25-
26-
if isstruct(varargin{2}) && isfield(varargin{2}, 'D') && ...
27-
isa(varargin{2}.D, 'meeg')
28-
varargin{2}.D = fullfile(varargin{2}.D.path, varargin{2}.D.fname);
25+
26+
if isstruct(varargin{2}) && isfield(varargin{2}, 'D')
27+
if isa(varargin{2}.D, 'meeg')
28+
varargin{2}.D = fullfile(varargin{2}.D);
29+
elseif isa(varargin{2}.D, 'cell')
30+
for i = 1:numel(varargin{2}.D)
31+
if isa(varargin{2}.D{i}, 'meeg')
32+
varargin{2}.D{i} = fullfile(varargin{2}.D{i});
33+
end
34+
end
35+
end
2936
end
3037

3138
this.history(nh+1).args = varargin{2};
32-
39+
40+
[dum, this.history(nh+1).ver] = spm('ver');
3341
elseif isstruct(varargin{1})
3442
this.history = varargin{1};
3543
end

@meeg/private/checkmeeg.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
% Copyright (C) 2008-2014 Wellcome Trust Centre for Neuroimaging
77

88
% Vladimir Litvak
9-
% $Id: checkmeeg.m 6622 2015-12-03 11:54:13Z vladimir $
9+
% $Id: checkmeeg.m 6817 2016-06-20 17:10:50Z vladimir $
1010

1111

1212
%-Initialise data dimensions
@@ -360,7 +360,7 @@
360360
this.sensors.eeg = rmfield(this.sensors.eeg, 'chanunit');
361361
end
362362
end
363-
this.sensors.eeg = ft_datatype_sens(this.sensors.eeg, 'version', 'upcoming', 'amplitude', 'V', 'distance', 'mm');
363+
this.sensors.eeg = ft_datatype_sens(this.sensors.eeg, 'amplitude', 'V', 'distance', 'mm');
364364
end
365365
end
366366
if isfield(this.sensors, 'meg')
@@ -373,7 +373,7 @@
373373
this.sensors.meg = rmfield(this.sensors.meg, 'chanunit');
374374
end
375375
end
376-
this.sensors.meg = ft_datatype_sens(this.sensors.meg, 'version', 'upcoming', 'amplitude', 'T', 'distance', 'mm');
376+
this.sensors.meg = ft_datatype_sens(this.sensors.meg, 'amplitude', 'T', 'distance', 'mm');
377377
end
378378
end
379379
end

@meeg/sensors.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
% Copyright (C) 2008-2012 Wellcome Trust Centre for Neuroimaging
88

99
% Vladimir Litvak
10-
% $Id: sensors.m 6535 2015-08-25 11:45:26Z vladimir $
10+
% $Id: sensors.m 6829 2016-07-07 10:16:46Z vladimir $
1111

1212
if nargin<2
1313
error('Sensor type (EEG or MEG) must be specified');
@@ -151,8 +151,8 @@
151151
end
152152

153153
if strcmpi(type, 'MEG')
154-
res = ft_datatype_sens(sens, 'version', 'upcoming', 'amplitude', 'T', 'distance', 'mm');
154+
res = ft_datatype_sens(sens, 'amplitude', 'T', 'distance', 'mm');
155155
else
156-
res = ft_datatype_sens(sens, 'version', 'upcoming', 'amplitude', 'V', 'distance', 'mm');
156+
res = ft_datatype_sens(sens, 'amplitude', 'V', 'distance', 'mm');
157157
end
158158
end

Contents.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% Statistical Parametric Mapping
2-
% Version 6685 (SPM12) 15-Jan-16
2+
% Version 6906 (SPM12) 20-Oct-16
33
%__________________________________________________________________________
44
% ___ ____ __ __
55
% / __)( _ \( \/ )
@@ -37,7 +37,7 @@
3737
%__________________________________________________________________________
3838
% Copyright (C) 1991,1994-2016 Wellcome Trust Centre for Neuroimaging
3939

40-
% $Id: Contents.m 6684 2016-01-15 16:30:24Z guillaume $
40+
% $Id: Contents.m 6905 2016-10-20 15:00:48Z guillaume $
4141

4242
%==========================================================================
4343
% PROGRAMMERS NOTE:

config/spm_cfg.m

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%__________________________________________________________________________
44
% Copyright (C) 2008-2015 Wellcome Trust Centre for Neuroimaging
55

6-
% $Id: spm_cfg.m 6315 2015-01-23 17:09:06Z guillaume $
6+
% $Id: spm_cfg.m 6711 2016-02-03 15:25:43Z peter $
77

88
%--------------------------------------------------------------------------
99
% Temporal
@@ -35,11 +35,16 @@
3535
%--------------------------------------------------------------------------
3636
% Dynamic Causal Modelling
3737
%--------------------------------------------------------------------------
38+
spm_cfg_dcm_spec = cfg_choice;
39+
spm_cfg_dcm_spec.tag = 'spec';
40+
spm_cfg_dcm_spec.name = 'DCM specification';
41+
spm_cfg_dcm_spec.values = {spm_cfg_dcm_fmri spm_cfg_dcm_meeg};
42+
3843
dcm = cfg_choice;
3944
dcm.tag = 'dcm';
4045
dcm.name = 'DCM';
4146
dcm.help = {'Dynamic Causal Modelling.'};
42-
dcm.values = { spm_cfg_dcm_fmri spm_cfg_dcm_meeg spm_cfg_dcm_bms};
47+
dcm.values = { spm_cfg_dcm_spec spm_cfg_dcm_est spm_cfg_dcm_bms spm_cfg_dcm_peb};
4348

4449
%--------------------------------------------------------------------------
4550
% Util

0 commit comments

Comments
 (0)