Skip to content

Commit c5e30c0

Browse files
authored
Merge pull request #81 from DeepLabCut/pims_bugfix_single_image
Bug fix: Unable to open single frame in folder for labeling
2 parents 264795d + 4bfb421 commit c5e30c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/napari_deeplabcut/_reader.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ def read_images(path):
9999
"root": os.path.split(path)[0],
100100
},
101101
}
102+
103+
# https://github.com/soft-matter/pims/issues/452
104+
if len(filepaths) == 1:
105+
path = glob.glob(path)[0]
106+
102107
return [(imread(path), params, "image")]
103108

104109

0 commit comments

Comments
 (0)