Skip to content

Commit

Permalink
fixed compatability with matlab versions prior to R2012a (test in R20…
Browse files Browse the repository at this point in the history
…10a)
  • Loading branch information
lucapton committed Nov 16, 2018
1 parent bb74e4d commit 6a2f231
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions ICL_feature_extractor.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
% extract features for the ICLabel Classifier
% if there are any issues, report them to lpionton@ucsd.edu

function features = ICL_feature_extractor(EEG)
%% check inputs
Expand Down
2 changes: 1 addition & 1 deletion matconvnet
6 changes: 5 additions & 1 deletion run_ICL.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

% load network
netStruct = load(fullfile(pluginpath, 'netICL.mat'));
net = dagnn.DagNN.loadobj(netStruct);
try
net = dagnn.DagNN.loadobj(netStruct);
catch
net = dagnn_bc.DagNN.loadobj(netStruct);
end
clear netStruct;

% inference
Expand Down

0 comments on commit 6a2f231

Please sign in to comment.