Skip to content

Commit

Permalink
Merge pull request #260 from psl-schaefer/main
Browse files Browse the repository at this point in the history
Update xenium.py, fix problem with hidden files in morphology_foucs direcory
  • Loading branch information
LucaMarconato authored Jan 13, 2025
2 parents a785803 + efc4129 commit d1c1df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatialdata_io/readers/xenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def xenium(
else:
if morphology_focus:
morphology_focus_dir = path / XeniumKeys.MORPHOLOGY_FOCUS_DIR
files = {f for f in os.listdir(morphology_focus_dir) if f.endswith(".ome.tif")}
files = {f for f in os.listdir(morphology_focus_dir) if f.endswith(".ome.tif") and not f.startswith("._")}
if len(files) not in [1, 4]:
raise ValueError(
"Expected 1 (no segmentation kit) or 4 (segmentation kit) files in the morphology focus directory, "
Expand Down

0 comments on commit d1c1df4

Please sign in to comment.