Skip to content

Commit 5b7db7f

Browse files
committed
Merge branch 'devel' of https://github.com/sccn/BCILAB into devel
2 parents 7568a4c + 81d4b45 commit 5b7db7f

40 files changed

+133
-1080
lines changed

code/dataset_editing/set_insert_markers.m

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,16 @@
268268
% sort the events by latency...
269269
newsignal.event = newsignal.event(hlp_getresult(2,@sort,[newsignal.event.latency]));
270270

271-
% update .urevent field if trivial
272-
if isempty(newsignal.urevent) || isequal([newsignal.event.urevent],1:length(newsignal.event))
273-
newsignal.urevent = newsignal.event;
274-
[newsignal.event.urevent] = arraydeal(1:length(newsignal.event));
271+
try
272+
% update .urevent field if trivial
273+
if isempty(newsignal.urevent) || isequal([newsignal.event.urevent],1:length(newsignal.event))
274+
newsignal.urevent = newsignal.event;
275+
[newsignal.event.urevent] = arraydeal(1:length(newsignal.event));
276+
end
277+
catch e
278+
hlp_handleerror(['Could not update .urevent field, skipping... (' e.message ')']);
275279
end
276-
280+
277281
% conclude randomization
278282
if strcmp(opts.placement,'random') && opts.repeatable && hlp_matlab_version < 707
279283
% restore saved RNG state

code/expressions/exp_beginfun.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,15 @@
277277
%
278278
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
279279
% 2010-04-14
280-
dp;
281280

282281
% --- obtain & interpret calling context ---
283282

284283
% obtain execution context
285284
ctx.stack = dbstack('-completenames');
286285

286+
% debug print
287+
dp(['in ' ctx.stack(2).name]);
288+
287289
% early check of whether the expression system is disabled
288290
if ~strcmp(setting,'symbolic') && hlp_resolve('disable_expressions',false,ctx) && ~isequal(varargin,{'delayed_online',true})
289291
% and exit exp_beginfun, if so

code/machine_learning/ml_traincov.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
%
2424
% Christian Kothe, Syntrogi
2525
% 2015-04-21
26-
26+
dp;
27+
2728
arg_define([0 3],varargin, ...
2829
arg_norep('trials'), ...
2930
arg_norep('targets'), ...

code/machine_learning/ml_traindal.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
%
128128
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
129129
% 2010-06-25
130+
dp;
130131

131132
expose_handles(@process_fold,varargin{:});
132133

code/machine_learning/ml_trainglm.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
%
139139
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
140140
% 2011-07-08
141+
dp;
141142

142143
% define common parameters of different distributions
143144
common_parameters = { ...

code/machine_learning/ml_traingmm.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
%
8686
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
8787
% 2010-04-05
88+
dp;
8889

8990
arg_define([0 3],varargin, ...
9091
arg_norep('trials'), ...

code/machine_learning/ml_trainhdca.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
%
4545
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
4646
% 2010-04-03
47-
47+
dp;
48+
4849
args = arg_define([0 2],varargin, ...
4950
arg_norep('trials'), ...
5051
arg_norep('targets'), ...

code/machine_learning/ml_trainhkl.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
%
7878
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
7979
% 2010-04-04
80+
dp;
8081

8182
opts=arg_define([0 3],varargin, ...
8283
arg_norep('trials'), ...

code/machine_learning/ml_trainlda.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
%
8383
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
8484
% 2010-04-03
85-
85+
dp;
86+
8687
arg_define([0 3],varargin, ...
8788
arg_norep('trials'), ...
8889
arg_norep('targets'), ...
@@ -161,4 +162,5 @@
161162
w = (mu{2} - mu{1}) / sig_both;
162163
w = w / (mu{2}*w' - mu_both*w');
163164
model = struct('w',{w}, 'b',{mu_both*w'}, 'classes',{classes},'featuremask',{retain},'lams',{lams});
165+
1;
164166
end

code/machine_learning/ml_trainlogreg.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
%
123123
% Christian Kothe, Swartz Center for Computational Neuroscience, UCSD
124124
% 2010-04-04
125+
dp;
125126

126127
arg_define([0 3],varargin, ...
127128
arg_norep('trials'), ...

0 commit comments

Comments
 (0)