Skip to content

Commit

Permalink
skip id on annots with no iaClass
Browse files Browse the repository at this point in the history
  • Loading branch information
naknomum committed Jan 5, 2024
1 parent cc6b216 commit 0539e9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/ecocean/ia/IA.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public static List<List<Annotation>> binAnnotsByIaClass(List<Annotation> anns) {
Map<String,List<Annotation>> iaClassToAnns = new HashMap<String, List<Annotation>>();
for (Annotation ann: anns) {
String iaClass = ann.getIAClass();
if (iaClass == null) continue;
List<Annotation> iaClassList = iaClassToAnns.getOrDefault(iaClass, new ArrayList<Annotation>());
iaClassList.add(ann);
iaClassToAnns.put(iaClass, iaClassList);
Expand Down

0 comments on commit 0539e9f

Please sign in to comment.