diff --git a/detEdit.m b/detEdit.m index 8d9d14b..8de47cc 100644 --- a/detEdit.m +++ b/detEdit.m @@ -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'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%