Skip to content

Commit

Permalink
fix sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
AnniekStok committed Jan 30, 2024
1 parent 239b653 commit 2b3296b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/napari_segmentation_correction/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def _add_option_layer(self):
label_stacks = []
for d in label_dirs:
# n dirs indicates number of channels
label_files = [f for f in os.listdir(os.path.join(path, d)) if '.tif' in f]
label_files = sorted([f for f in os.listdir(os.path.join(path, d)) if '.tif' in f])
label_imgs = []
for f in label_files:
# n label_files indicates n time points
Expand Down

0 comments on commit 2b3296b

Please sign in to comment.