Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4671acb

Browse files
committedSep 25, 2024·
fix path bug visium hd
1 parent 0b7b0d2 commit 4671acb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/spatialdata_io/readers/visium_hd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ def _get_bins(path: Path) -> list[str]:
272272
fullres_image_paths = [path_fullres / image_filename for image_filename in fullres_image_filenames]
273273
elif list((path_fullres := (path / f"{filename_prefix}tissue_image")).parent.glob(f"{path_fullres.name}.*")):
274274
fullres_image_paths = list(path_fullres.parent.glob(f"{path_fullres.name}.*"))
275+
else:
276+
fullres_image_paths = []
275277
if len(fullres_image_paths) > 1:
276278
warnings.warn(
277279
f"Multiple files found in {path_fullres}, using the first one: {fullres_image_paths[0].stem}. Please"

0 commit comments

Comments
 (0)