Skip to content

Commit

Permalink
simlify name checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreenwald committed Jun 4, 2020
1 parent b4c48b8 commit f1aff41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caliban_toolbox/utils/io_utils.py
Expand Up @@ -201,7 +201,7 @@ def load_npzs(crop_dir, log_data, verbose=True):
temp_npz = np.load(npz_path)

# determine how labels were named
labels_key = 'y' if 'y' in list(temp_npz.keys()) else 'annotated'
labels_key = 'y' if 'y' in temp_npz else 'annotated'

# last slice may be truncated, modify index
if slice == num_slices - 1:
Expand Down

0 comments on commit f1aff41

Please sign in to comment.