Skip to content

Commit

Permalink
fix indexing error which prevented loading of 2D data
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreenwald committed May 22, 2020
1 parent a012476 commit 7c7aff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caliban_toolbox/pre_annotation/data_loader.py
Expand Up @@ -428,7 +428,7 @@ def load_imagedata(self):
# Read in the image
img_set = tiff.imread(path)
raw_images.append(img_set)
if img_set.shape[0] > max_frames:
if img_set.shape[0] > max_frames and len(img_set.shape) > 2:
max_frames = img_set.shape[0]

# TODO: the following wont be neccesary when num_frames exist
Expand Down

0 comments on commit 7c7aff4

Please sign in to comment.