Skip to content

Commit

Permalink
add segmentation file not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjorquera committed Apr 17, 2023
1 parent 3311fd5 commit 5178b6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion massfuncs/readalltxt.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@
for i2 = 2:Markers.nsegs(cidx)
idx_count = idx_count + 1;
x = [Markers.all{cidx},'_',num2str(i2)];
[v3{idx_count},units3] = readtxt(filename,x, wd, layers); %#ok<AGROW>
try
[v3{idx_count},units3] = readtxt(filename,x, wd, layers); %#ok<AGROW>
catch
e_code = 19;
return
end

if ~strcmp(units3, units(cidx))
e_code = 16;
return
Expand Down
3 changes: 3 additions & 0 deletions shared/err_handl_tables.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
'Make sure all cell seg data files are concurrent with '...
'binary seg maps of their segmentation heirarchy.'];
e_code = 1;
case 19
err_str = ['ERROR: Cell segmentation file missing'];
e_code = 1;
end
%
%disp([sname, ';',err_str])
Expand Down

0 comments on commit 5178b6f

Please sign in to comment.