Skip to content

Commit

Permalink
Merge pull request #96 from petebankhead/task-runner
Browse files Browse the repository at this point in the history
Report when measuring objects
  • Loading branch information
petebankhead authored Sep 20, 2024
2 parents 468191e + a7f7ba3 commit a149213
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public void makeMeasurements(ImageData<BufferedImage> imageData, Collection<? ex
for (var cell : objects) {
tasks.add(new MeasurementTask(server2, cell, downsample, featuresArray, compartments, measurements));
}
taskRunner.runTasks(tasks);
String message = objects.size() == 1 ? "Measuring 1 object" : "Measuring " + objects.size() + " objects";
taskRunner.runTasks(message, tasks);
// It's possible we have the same server - in which case we don't want to close it twice
if (!Objects.equals(server, server2)) {
server2.close();
Expand Down

0 comments on commit a149213

Please sign in to comment.