Qupath run for project getting stuck on empty slides

I’ve had some issues with some scripts getting stuck on slides without annotations. This might be a solution if you are having the same problem:

if(getAnnotationObjects().size()==0){
print getProjectEntry().getImageName() + " HAS NO ANNOTATIONS"
}
else
{selectAnnotations()
runPlugin(...............);
}
2 Likes

Thanks! Edited the code slightly so that it does not require a variable that did not exist in the code, and swapped the format from quote into code.

1 Like