Skip to content

Commit

Permalink
Merge pull request #1366 from virtualcell/npe-read-image
Browse files Browse the repository at this point in the history
accommodate missing ClientTaskStatusSupport while reading images
  • Loading branch information
jcschaff authored Oct 15, 2024
2 parents 2b091cf + 1a12db4 commit ec8f01c
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,21 +175,33 @@ public ImageSizeInfo getImageSizeInfoForceZ(String fileName, Integer forceZSize)
@Override
public ImageDataset readImageDataset(String imageID, ClientTaskStatusSupport status) throws Exception {
var imageDataset = readImageDataset(imageID);
status.setProgress(100);
if (status != null){
status.setProgress(100);
}else{
logger.warn("ClientTaskStatusSupport var status is null");
}
return imageDataset;
}

@Override
public ImageDataset[] readImageDatasetChannels(String imageID, ClientTaskStatusSupport status, boolean bMergeChannels, Integer timeIndex, ISize resize) throws Exception {
var imageDatasets = readImageDatasetChannels(imageID, bMergeChannels, timeIndex, resize);
status.setProgress(100);
if (status != null){
status.setProgress(100);
}else{
logger.warn("ClientTaskStatusSupport var status is null");
}
return imageDatasets;
}

@Override
public ImageDataset readImageDatasetFromMultiFiles(File[] files, ClientTaskStatusSupport status, boolean isTimeSeries, double timeInterval) throws Exception {
var imageDataset = readImageDatasetFromMultiFiles(files, isTimeSeries, timeInterval);
status.setProgress(100);
if (status != null){
status.setProgress(100);
}else{
logger.warn("ClientTaskStatusSupport var status is null");
}
return imageDataset;
}

Expand Down

0 comments on commit ec8f01c

Please sign in to comment.