Skip to content

Commit

Permalink
Fix for mistakes that introduce 0 into zID col 2
Browse files Browse the repository at this point in the history
This should fix an issue where sometimes the wrong key is hit, and zeros get introduced into zID in the second column, and that breaks the color indexing.
This will only fix it the next time the user starts detEdit.
  • Loading branch information
kfrasier committed Mar 11, 2021
1 parent f78d030 commit 2337c0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions detEdit.m
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ function detEdit(userFunc)
% whatever was in mySpID before.
p.mySpID = labels;
end
if sum(zID(:,2)==0)>0
disp('WARNING: Found zeros in ID labels, removing bad rows.')
zID(zID(:,2)==0,:) = [];
end
save(fNameList.ID,'zID');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit 2337c0b

Please sign in to comment.