Skip to content

Commit c87d9fc

Browse files
committed
bugs fix
1 parent 7f1577f commit c87d9fc

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

gui_project/read_ethovision/read_ethovision_txt.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
%Read data
1111
fileID = fopen(fn);
12-
data = textscan(fileID,fmt,'CollectOutput',1,'Delimiter',delimiter);
12+
data = textscan(fileID,fmt,'CollectOutput',1,'Delimiter',';');
1313
data=data{1};
1414
fclose(fileID);
1515

main_gui.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ function new_project_Callback(hObject, eventdata, handles)
5656
set(handles.load_project,'UserData',project_path);
5757
%load the new project
5858
new_project(project_path);
59-
%move also the tags.txt to the new project
60-
if iscell(project_path)
61-
project_path = char(project_path{1});
59+
project_path = char_project_path(project_path);
60+
files = dir(fullfile(project_path,'settings','*.mat'));
61+
if isempty(files) % no data were loaded
62+
rmdir(project_path,'s');
63+
set(temp(idx),'Visible','on');
64+
return
6265
end
6366
if isdeployed
6467
tags_path = fullfile(ctfroot,'configs','tags','tags.txt');

results/class_statistics.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
waitbar(1,h,'Exporting results...');
3030

3131
% Calculate the percentages
32-
percentage_per_classifier = zeros(length(count),length(strats));
33-
for i = 1:length(count)
34-
for j = 1:length(strats)
32+
percentage_per_classifier = zeros(size(count,1),length(strats));
33+
for i = 1:size(percentage_per_classifier,1)
34+
for j = 1:size(percentage_per_classifier,2)
3535
percentage_per_classifier(i,j) = 100 * (count(i,j) / length(class_map));
3636
end
3737
end

0 commit comments

Comments
 (0)