Skip to content

Commit d0be188

Browse files
authored
Merge pull request #1 from psl-schaefer/psl-schaefer-patch-1
Update xenium.py, fix problem with hidden files in morphology_foucs direcory
2 parents a5dfb92 + 99e460e commit d0be188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spatialdata_io/readers/xenium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def xenium(
286286
else:
287287
if morphology_focus:
288288
morphology_focus_dir = path / XeniumKeys.MORPHOLOGY_FOCUS_DIR
289-
files = {f for f in os.listdir(morphology_focus_dir) if f.endswith(".ome.tif")}
289+
files = {f for f in os.listdir(morphology_focus_dir) if f.endswith(".ome.tif") and not f.startswith("._")}
290290
if len(files) not in [1, 4]:
291291
raise ValueError(
292292
"Expected 1 (no segmentation kit) or 4 (segmentation kit) files in the morphology focus directory, "

0 commit comments

Comments
 (0)