Skip to content

Commit 66e0a56

Browse files
authored
Update parse_data_simplified.m
1 parent 78eeca0 commit 66e0a56

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

segmentation/parse_data_simplified.m

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
end
3737
i = i+1;
3838
end
39-
if isempty(id)
40-
errordlg('Animal ID not found. Check the provided ID Field','Parse ID Error');
41-
return
42-
end
4339
% store the animal ids
44-
ids_temp = [ids_temp, id];
40+
try
41+
ids_temp = [ids_temp, id];
42+
catch
43+
errordlg('Animal ID not found. Check the provided ID Field','Parse ID Error');
44+
return
45+
end
4546
end
4647
% store the unique animal ids per session
4748
ids{session} = unique(ids_temp);

0 commit comments

Comments
 (0)