Skip to content

Commit

Permalink
Merge pull request #50 from MarineBioAcousticsRC/zeros-in-zID
Browse files Browse the repository at this point in the history
Fix for mistakes that introduce 0 into zID col 2
  • Loading branch information
asolsonaberga authored Mar 11, 2021
2 parents f78d030 + 2337c0b commit 305185f
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 305185f

Please sign in to comment.