Skip to content

Commit

Permalink
fix path bug visium hd
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Sep 25, 2024
1 parent 0b7b0d2 commit 4671acb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spatialdata_io/readers/visium_hd.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def _get_bins(path: Path) -> list[str]:
fullres_image_paths = [path_fullres / image_filename for image_filename in fullres_image_filenames]
elif list((path_fullres := (path / f"{filename_prefix}tissue_image")).parent.glob(f"{path_fullres.name}.*")):
fullres_image_paths = list(path_fullres.parent.glob(f"{path_fullres.name}.*"))
else:
fullres_image_paths = []
if len(fullres_image_paths) > 1:
warnings.warn(
f"Multiple files found in {path_fullres}, using the first one: {fullres_image_paths[0].stem}. Please"
Expand Down

0 comments on commit 4671acb

Please sign in to comment.