Skip to content

Commit

Permalink
Merge pull request #26 from BIMK/MacOS_GUI_bug_fix
Browse files Browse the repository at this point in the history
Fix Bug in MAC which show  label with inaccuracy
  • Loading branch information
anonymone authored Jan 5, 2019
2 parents 1d2da55 + ea6a83a commit 136ff5e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions PlatEMO/GUI/Modules/module_experiment.m
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ function flushTable(obj,problemindex)
if isempty(obj.data)
return;
end
nP = size(obj.data.Result,1);
nA = size(obj.data.Result,2);
[nP,nA,nR] = size(obj.data.Result);
% Lock the window
if nargin < 2
problemindex = 1 : nP;
Expand All @@ -541,7 +540,7 @@ function flushTable(obj,problemindex)
for p = problemindex
% Calculate the run times of each algorithm on each
% test instance
data = sum(~squeeze(cellfun('isempty',obj.data.Result(p,:,:))),2)';
data = sum(reshape(~cellfun('isempty',obj.data.Result(p,:,:)),nA,nR),2)';
valid = find(data>0);
for a = valid
obj.control.table.handle.Data{p,end-nA+a} = sprintf('%d',data(a));
Expand All @@ -553,7 +552,7 @@ function flushTable(obj,problemindex)
basic = find([obj.control.ranksumMenu.items.value],1);
for p = problemindex
% Ignore the data sets having no population
data = sum(~squeeze(cellfun('isempty',obj.data.Result(p,:,:))),2)';
data = sum(reshape(~cellfun('isempty',obj.data.Result(p,:,:)),nA,nR),2)';
valid = find(data>0);
% Calculate the metric values of all the results
% in this row
Expand Down

0 comments on commit 136ff5e

Please sign in to comment.